Class FormVisualStyle
Represents the class to define the style for SfForm control.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.WinForms.Controls.Styles
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class FormVisualStyle : VisualStyleBase, ICustomTypeDescriptor, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject
Constructors
FormVisualStyle()
Initializes a new instance of the FormVisualStyle class.
Declaration
public FormVisualStyle()
FormVisualStyle(FormStyleInfoIdentity)
Initializes a new instance of the FormVisualStyle class.
Declaration
public FormVisualStyle(FormStyleInfoIdentity identity)
Parameters
Type | Name | Description |
---|---|---|
FormStyleInfoIdentity | identity | A FormStyleInfoIdentity that holds the identity for this FormStyleInfoStore. |
Properties
BackColor
Gets or sets the back color of the SfForm control.
Declaration
public Color BackColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Border
Gets or sets the selected state border of the SfForm control.
Declaration
public Pen Border { get; set; }
Property Value
Type |
---|
System.Drawing.Pen |
Remarks
The width of the active state border and inactive state border should be same.
DefaultStyle
Gets the default style of the form.
Declaration
public FormVisualStyle DefaultStyle { get; }
Property Value
Type |
---|
FormVisualStyle |
ForeColor
Gets or sets the fore color of the SfForm control.
Declaration
public Color ForeColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
InactiveBorder
Gets or sets the inactive state border of the SfForm control.
Declaration
public Pen InactiveBorder { get; set; }
Property Value
Type |
---|
System.Drawing.Pen |
Remarks
The width of the active state border and inactive state border should be same.
InactiveShadowOpacity
Gets or sets the opacity of the form's shadow in normal state.
Declaration
public byte InactiveShadowOpacity { get; set; }
Property Value
Type |
---|
System.Byte |
Remarks
The value should be from 0 to 255.
MdiChild
Gets or sets the style information of the MDI form.
Declaration
public MdiChildStyleInfo MdiChild { get; set; }
Property Value
Type |
---|
MdiChildStyleInfo |
ShadowOpacity
Gets or sets the opacity of the form's shadow in selected state.
Declaration
public byte ShadowOpacity { get; set; }
Property Value
Type |
---|
System.Byte |
Remarks
The value should be from 0 to 255.
TitleBar
Gets or sets the style information of the caption bar.
Declaration
public TitleBarStyleInfo TitleBar { get; set; }
Property Value
Type |
---|
TitleBarStyleInfo |
Methods
CreateSubObjectIdentity(StyleInfoProperty)
Override this method to create a product-specific identity object for a sub object.
Declaration
public override StyleInfoSubObjectIdentity CreateSubObjectIdentity(StyleInfoProperty sip)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoProperty | sip | The StyleInfoProperty. |
Returns
Type | Description |
---|---|
StyleInfoSubObjectIdentity | An identity object for a sub object of this style. |
Overrides
Examples
The following code is an example how Essential form creates FormVisualStyleInfoSubObjectIdentity:
public override StyleInfoSubObjectIdentity CreateSubObjectIdentity(StyleInfoProperty sip)
{
return new FormVisualStyleInfoSubObjectIdentity(this, sip);
}
GetDefaultStyle()
Provide the default style of the form.
Declaration
protected override StyleInfoBase GetDefaultStyle()
Returns
Type | Description |
---|---|
StyleInfoBase | Default style object. |