Visual Basic (Declaration) | |
---|---|
Public Overridable Sub SetElementStyle( _ ByVal style As ElementStyle _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As ElementControl Dim style As ElementStyle instance.SetElementStyle(style) |
C# | |
---|---|
public virtual void SetElementStyle( ElementStyle style ) |
Parameters
- style
- ElementStyle object
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.
C# | Copy Code |
---|---|
FarPoint.Win.ElementStyle s1; s1 = new FarPoint.Win.ElementStyle(); s1.BackColor = Color.Goldenrod s1.ForeColor = Color.Cyan s1.Font = New Font("Arial Black", 10) s1.TextOrientation = FarPoint.Win.TextOrientation.TextHorizontalFlipped element.SetElementStyle(s1) |
Visual Basic | Copy Code |
---|---|
Dim s1 As New FarPoint.Win.ElementStyle() s1.BackColor = Color.Goldenrod s1.ForeColor = Color.Cyan s1.Font = New Font("Arial Black", 10) s1.TextOrientation = FarPoint.Win.TextOrientation.TextHorizontalFlipped element.SetElementStyle(s1) |
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8