Spread Windows Forms 11.0 Product Documentation
ResetFont Method (ElementWindowless)
Example 


FarPoint.Win Assembly > FarPoint.Win Namespace > ElementWindowless Class : ResetFont Method
Resets the font for the element to it default value.
Syntax
'Declaration
 
Public Overridable Sub ResetFont() 
'Usage
 
Dim instance As ElementWindowless
 
instance.ResetFont()
public virtual void ResetFont()
Remarks
Use this method to reset the Font property to its default value.
Example
Font f = new System.Drawing.Font("MS Sans Serif", 12, FontStyle.Bold);
element.Font = f;
element.State = FarPoint.Win.ElementState.Inverted;
element.ResetFont();
Dim f As New System.Drawing.Font("MS Sans Serif", 12, FontStyle.Bold)
element.Font = f
element.State = FarPoint.Win.ElementState.Inverted
element.ResetFont();
See Also

Reference

ElementWindowless Class
ElementWindowless Members
Font Property