Spread Windows Forms 9.0 Product Documentation
SetElementStyle(ElementStyle,Boolean) Method


ElementStyle object that contains the element style
Whether to reset properties that are not set in the element to their default settings
Sets the style for the element and clears unset properties.
Syntax
'Declaration
 
Public Overloads Overridable Sub SetElementStyle( _
   ByVal style As ElementStyle, _
   ByVal clearUnsetProps As Boolean _
) 
'Usage
 
Dim instance As ElementWindowless
Dim style As ElementStyle
Dim clearUnsetProps As Boolean
 
instance.SetElementStyle(style, clearUnsetProps)
public virtual void SetElementStyle( 
   ElementStyle style,
   bool clearUnsetProps
)

Parameters

style
ElementStyle object that contains the element style
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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

ElementWindowless Class
ElementWindowless Members
Overload List
GetElementStyle Method
ElementStyle Class

 

 


Copyright © GrapeCity, inc. All rights reserved.