Spread Windows Forms 12.0 Product Documentation
SetElementStyle Method (ElementControl)
Example 


FarPoint.Win Assembly > FarPoint.Win Namespace > ElementControl Class : SetElementStyle Method
ElementStyle object
Sets the style for the element.
Syntax
'Declaration
 
Public Overridable Sub SetElementStyle( _
   ByVal style As ElementStyle _
) 
'Usage
 
Dim instance As ElementControl
Dim style As ElementStyle
 
instance.SetElementStyle(style)
public virtual void SetElementStyle( 
   ElementStyle style
)

Parameters

style
ElementStyle object
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.

For more information, see the ElementStyle class.

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

Example
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)
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)
See Also

Reference

ElementControl Class
ElementControl Members
GetElementStyle Method
ElementStyle Class