Visual Basic (Declaration) | |
---|---|
Public Overloads Overridable Sub SetElementStyle( _ ByVal style As ElementStyle _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As ElementWindowless Dim style As ElementStyle instance.SetElementStyle(style) |
C# | |
---|---|
public virtual void SetElementStyle( ElementStyle style ) |
Parameters
- style
- ElementStyle object containing the style of the element
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.
For more information, see the ElementStyle class.
To return the ElementStyle object for an element, use the GetElementStyle method.
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