Spread Windows Forms 6.0 Product Documentation
SetElementStyle(ElementStyle,Boolean) Method
See Also  Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > ElementWindowless Class > SetElementStyle Method : SetElementStyle(ElementStyle,Boolean) Method


style
ElementStyle object containing the style of the element
clearUnsetProps
Whether to reset properties that are not set in the element to their default settings

Glossary Item Box

Sets the style for the element and clears unset properties.

Syntax

Visual Basic (Declaration) 
Public Overloads Overridable Sub SetElementStyle( _
   ByVal style As ElementStyle, _
   ByVal clearUnsetProps As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As ElementWindowless
Dim style As ElementStyle
Dim clearUnsetProps As Boolean
 
instance.SetElementStyle(style, clearUnsetProps)
C# 
public virtual void SetElementStyle( 
   ElementStyle style,
   bool clearUnsetProps
)

Parameters

style
ElementStyle object containing the style of the element
clearUnsetProps
Whether to reset properties that are not set in the element to their default settings

Remarks

Use this method to specify an ElementStyle object that contains the settings for the element. The ElementStyle object provides settings for appearance, including colors, alignment, and margins.

Set clearUnsetProps to true to reset the object properties that correspond to ElementStyle properties back to their defaults.

For more information, see the ElementStyle class.

To return the ElementStyle object for an element, use the GetElementStyle method.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.