WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FormVisualStyle - WindowsForms API Reference | Syncfusion SfForm control. ">

    Show / Hide Table of Contents

    Class FormVisualStyle

    Represents the class to define the style for SfForm control.

    Inheritance
    System.Object
    ShouldSerializeBasedPersisterType
    StyleInfoBase
    StyleInfoSubObjectBase
    VisualStyleBase
    FormVisualStyle
    Implements
    System.ComponentModel.ICustomTypeDescriptor
    System.IDisposable
    IStyleInfo
    System.ComponentModel.ISupportInitialize
    System.IFormattable
    System.IConvertible
    System.Xml.Serialization.IXmlSerializable
    IStyleInfoSubObject
    Inherited Members
    VisualStyleBase.UpdateStyles(IThemeProvider)
    StyleInfoSubObjectBase.Dispose(Boolean)
    StyleInfoSubObjectBase.OnStyleChanged(StyleInfoProperty)
    StyleInfoSubObjectBase.IntGetDefaultStyleInfo(StyleInfoProperty)
    StyleInfoSubObjectBase.MakeCopy(StyleInfoBase, StyleInfoProperty)
    StyleInfoSubObjectBase.SubObjectIdentity
    StyleInfoSubObjectBase.Sip
    StyleInfoSubObjectBase.Data
    StyleInfoSubObjectBase.Owner
    StyleInfoBase.WriteXml(XmlWriter)
    StyleInfoBase.ReadXml(XmlReader)
    StyleInfoBase.SetStore(StyleInfoStore)
    StyleInfoBase.ClearCache()
    StyleInfoBase.Dispose()
    StyleInfoBase.Equals(Object)
    StyleInfoBase.EqualsObject(Object, Object)
    StyleInfoBase.GetHashCode()
    StyleInfoBase.ToString()
    StyleInfoBase.ToString(String)
    StyleInfoBase.ToString(String, IFormatProvider)
    StyleInfoBase.ParseString(String)
    StyleInfoBase.BeginInit()
    StyleInfoBase.EndInit()
    StyleInfoBase.BeginUpdate()
    StyleInfoBase.EndUpdate()
    StyleInfoBase.GetDefaultStyleInfoStore(StyleInfoProperty)
    StyleInfoBase.OnStyleChanging(StyleInfoProperty)
    StyleInfoBase.IsSubset(IStyleInfo)
    StyleInfoBase.CopyFrom(IStyleInfo)
    StyleInfoBase.ModifyStyle(IStyleInfo, StyleModifyType)
    StyleInfoBase.InheritStyle(IStyleInfo, StyleModifyType)
    StyleInfoBase.MergeStyle(IStyleInfo)
    StyleInfoBase.HasValue(StyleInfoProperty)
    StyleInfoBase.IsValueModified(StyleInfoProperty)
    StyleInfoBase.ResetValue(StyleInfoProperty)
    StyleInfoBase.GetValue(StyleInfoProperty)
    StyleInfoBase.GetDefaultValue(StyleInfoProperty)
    StyleInfoBase.GetShortValue(StyleInfoProperty)
    StyleInfoBase.SetValue(StyleInfoProperty, Object)
    StyleInfoBase.SetValue(StyleInfoProperty, Int16)
    StyleInfoBase.IConvertible.ToUInt64(IFormatProvider)
    StyleInfoBase.IConvertible.ToSByte(IFormatProvider)
    StyleInfoBase.IConvertible.ToDouble(IFormatProvider)
    StyleInfoBase.IConvertible.ToDateTime(IFormatProvider)
    StyleInfoBase.IConvertible.ToSingle(IFormatProvider)
    StyleInfoBase.IConvertible.ToBoolean(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt32(IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt16(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt16(IFormatProvider)
    StyleInfoBase.IConvertible.ToString(IFormatProvider)
    StyleInfoBase.IConvertible.ToByte(IFormatProvider)
    StyleInfoBase.IConvertible.ToChar(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt64(IFormatProvider)
    StyleInfoBase.IConvertible.GetTypeCode()
    StyleInfoBase.IConvertible.ToDecimal(IFormatProvider)
    StyleInfoBase.IConvertible.ToType(Type, IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt32(IFormatProvider)
    StyleInfoBase.Identity
    StyleInfoBase.Store
    StyleInfoBase.CacheValues
    StyleInfoBase.WeakReferenceChangedListeners
    StyleInfoBase.Updating
    StyleInfoBase.IsEmpty
    StyleInfoBase.IsChanged
    StyleInfoBase.Changed
    StyleInfoBase.Changing
    ShouldSerializeBasedPersisterType.GetNewAttributesCount(PropertyDescriptor)
    ShouldSerializeBasedPersisterType.AddNewAttributes(PropertyDescriptor, Attribute[], Int32)
    ShouldSerializeBasedPersisterType.GetCustomPDC(PropertyDescriptorCollection)
    ShouldSerializeBasedPersisterType.CheckAllProperties
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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 Description
    System.Drawing.Color

    Border

    Gets or sets the selected state border of the SfForm control.

    Declaration
    public Pen Border { get; set; }
    Property Value
    Type Description
    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 Description
    FormVisualStyle

    ForeColor

    Gets or sets the fore color of the SfForm control.

    Declaration
    public Color ForeColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    InactiveBorder

    Gets or sets the inactive state border of the SfForm control.

    Declaration
    public Pen InactiveBorder { get; set; }
    Property Value
    Type Description
    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 Description
    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 Description
    MdiChildStyleInfo

    ShadowOpacity

    Gets or sets the opacity of the form's shadow in selected state.

    Declaration
    public byte ShadowOpacity { get; set; }
    Property Value
    Type Description
    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 Description
    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
    StyleInfoBase.CreateSubObjectIdentity(StyleInfoProperty)
    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.

    Overrides
    VisualStyleBase.GetDefaultStyle()

    Implements

    System.ComponentModel.ICustomTypeDescriptor
    System.IDisposable
    IStyleInfo
    System.ComponentModel.ISupportInitialize
    System.IFormattable
    System.IConvertible
    System.Xml.Serialization.IXmlSerializable
    IStyleInfoSubObject
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved