menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ScrollerVisualStyle - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ScrollerVisualStyle

    Contains the list of properties that are used to customize the appearance of the scroll control.

    Inheritance
    System.Object
    ShouldSerializeBasedPersisterType
    StyleInfoBase
    StyleInfoSubObjectBase
    VisualStyleBase
    ScrollerVisualStyle
    DiagramVisualStyle
    GridControlVisualStyle
    Implements
    System.ComponentModel.ICustomTypeDescriptor
    System.IDisposable
    IStyleInfo
    System.ComponentModel.ISupportInitialize
    System.IFormattable
    System.IConvertible
    System.Xml.Serialization.IXmlSerializable
    IStyleInfoSubObject
    Inherited Members
    ShouldSerializeBasedPersisterType.AddNewAttributes(PropertyDescriptor, Attribute[], Int32)
    ShouldSerializeBasedPersisterType.CheckAllProperties
    ShouldSerializeBasedPersisterType.GetCustomPDC(PropertyDescriptorCollection)
    ShouldSerializeBasedPersisterType.GetNewAttributesCount(PropertyDescriptor)
    StyleInfoBase.BeginInit()
    StyleInfoBase.BeginUpdate()
    StyleInfoBase.CacheValues
    StyleInfoBase.Changed
    StyleInfoBase.Changing
    StyleInfoBase.ClearCache()
    StyleInfoBase.CopyFrom(IStyleInfo)
    StyleInfoBase.Dispose()
    StyleInfoBase.EndInit()
    StyleInfoBase.EndUpdate()
    StyleInfoBase.Equals(Object)
    StyleInfoBase.EqualsObject(Object, Object)
    StyleInfoBase.GetDefaultStyleInfoStore(StyleInfoProperty)
    StyleInfoBase.GetDefaultValue(StyleInfoProperty)
    StyleInfoBase.GetHashCode()
    StyleInfoBase.GetShortValue(StyleInfoProperty)
    StyleInfoBase.GetValue(StyleInfoProperty)
    StyleInfoBase.HasValue(StyleInfoProperty)
    StyleInfoBase.IConvertible.GetTypeCode()
    StyleInfoBase.IConvertible.ToBoolean(IFormatProvider)
    StyleInfoBase.IConvertible.ToByte(IFormatProvider)
    StyleInfoBase.IConvertible.ToChar(IFormatProvider)
    StyleInfoBase.IConvertible.ToDateTime(IFormatProvider)
    StyleInfoBase.IConvertible.ToDecimal(IFormatProvider)
    StyleInfoBase.IConvertible.ToDouble(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt16(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt32(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt64(IFormatProvider)
    StyleInfoBase.IConvertible.ToSByte(IFormatProvider)
    StyleInfoBase.IConvertible.ToSingle(IFormatProvider)
    StyleInfoBase.IConvertible.ToString(IFormatProvider)
    StyleInfoBase.IConvertible.ToType(Type, IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt16(IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt32(IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt64(IFormatProvider)
    StyleInfoBase.Identity
    StyleInfoBase.InheritStyle(IStyleInfo, StyleModifyType)
    StyleInfoBase.IsChanged
    StyleInfoBase.IsEmpty
    StyleInfoBase.IsSubset(IStyleInfo)
    StyleInfoBase.IsValueModified(StyleInfoProperty)
    StyleInfoBase.MergeStyle(IStyleInfo)
    StyleInfoBase.ModifyStyle(IStyleInfo, StyleModifyType)
    StyleInfoBase.OnStyleChanging(StyleInfoProperty)
    StyleInfoBase.ParseString(String)
    StyleInfoBase.ReadXml(XmlReader)
    StyleInfoBase.ResetValue(StyleInfoProperty)
    StyleInfoBase.SetStore(StyleInfoStore)
    StyleInfoBase.SetValue(StyleInfoProperty, Int16)
    StyleInfoBase.SetValue(StyleInfoProperty, Object)
    StyleInfoBase.Store
    StyleInfoBase.ToString()
    StyleInfoBase.ToString(String)
    StyleInfoBase.ToString(String, IFormatProvider)
    StyleInfoBase.Updating
    StyleInfoBase.WeakReferenceChangedListeners
    StyleInfoBase.WriteXml(XmlWriter)
    StyleInfoSubObjectBase.Data
    StyleInfoSubObjectBase.IntGetDefaultStyleInfo(StyleInfoProperty)
    StyleInfoSubObjectBase.MakeCopy(StyleInfoBase, StyleInfoProperty)
    StyleInfoSubObjectBase.OnStyleChanged(StyleInfoProperty)
    StyleInfoSubObjectBase.Owner
    StyleInfoSubObjectBase.Sip
    StyleInfoSubObjectBase.SubObjectIdentity
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    VisualStyleBase.UpdateStyles(IThemeProvider)
    Namespace: Syncfusion.Windows.Forms
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class ScrollerVisualStyle : VisualStyleBase, ICustomTypeDescriptor, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject
    Remarks

    This contains the elements that are available in the scroll control. i.e. Horizontal scrollbar, Vertical scrol bar and SizeGripper.

    Constructors

    ScrollerVisualStyle()

    Initializes a new instance of the ScrollerVisualStyle class.

    Declaration
    public ScrollerVisualStyle()

    ScrollerVisualStyle(StyleInfoSubObjectIdentity, ScrollerVisualStyleInfoStore)

    Initializes a new instance of the ScrollerVisualStyle class.

    Declaration
    public ScrollerVisualStyle(StyleInfoSubObjectIdentity identity, ScrollerVisualStyleInfoStore store)
    Parameters
    Type Name Description
    StyleInfoSubObjectIdentity identity

    A StyleInfoSubObjectIdentity that holds the identity for this VisualStyleInfoStore.

    ScrollerVisualStyleInfoStore store

    A ScrollerVisualStyleInfoStore that holds data for this object. All changes in this style object will be saved in the ScrollerVisualStyleInfoStore object.

    ScrollerVisualStyle(ScrollerVisualStyleInfoStore)

    Initializes a new instance of the ScrollerVisualStyle class.

    Declaration
    public ScrollerVisualStyle(ScrollerVisualStyleInfoStore store)
    Parameters
    Type Name Description
    ScrollerVisualStyleInfoStore store

    A ScrollerVisualStyleInfoStore that holds data for this object. All changes in this style object will be saved in the ScrollerVisualStyleInfoStore object.

    ScrollerVisualStyle(Control)

    Initializes a new instance of the ScrollerVisualStyle class.

    Declaration
    public ScrollerVisualStyle(Control control)
    Parameters
    Type Name Description
    System.Windows.Forms.Control control

    A System.Windows.Forms.Control to create the identity for ScrollBars.

    Properties

    DefaultStyle

    Gets the default style of the ScrollerVisualStyle.

    Declaration
    public static ScrollerVisualStyle DefaultStyle { get; }
    Property Value
    Type
    ScrollerVisualStyle

    HorizontalScrollBarStyle

    Gets or sets the ScrollBarStyleInfo for the horizontal scrollbar of the scroll control.

    Declaration
    [ThemeStudio]
    public ScrollBarStyleInfo HorizontalScrollBarStyle { get; set; }
    Property Value
    Type
    ScrollBarStyleInfo

    SizeGripStyle

    Gets or sets the ScrollBarSizeGripStyleInfo for the size grip of the scroll control.

    Declaration
    [ThemeStudio]
    public ScrollBarSizeGripStyleInfo SizeGripStyle { get; set; }
    Property Value
    Type
    ScrollBarSizeGripStyleInfo

    VerticalScrollBarStyle

    Gets or sets the ScrollBarStyleInfo for the vertical scrollbar of the scroll control.

    Declaration
    [ThemeStudio]
    public ScrollBarStyleInfo VerticalScrollBarStyle { get; set; }
    Property Value
    Type
    ScrollBarStyleInfo

    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 scroll bar creates ScrollerVisualStyleInfoSubObjectIdentity:

    public override StyleInfoSubObjectIdentity CreateSubObjectIdentity(StyleInfoProperty sip)
    {
    	return new ScrollerVisualStyleInfoSubObjectIdentity(this, sip);
    }

    Dispose(Boolean)

    Disposes the unused resources.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    Specifies whether to dispose both managed and unmanaged resources or only the unmanaged resources.

    Overrides
    StyleInfoSubObjectBase.Dispose(Boolean)

    GetDefaultStyle()

    Provide the default style of the ScrollerVisualStyle.

    Declaration
    protected override StyleInfoBase GetDefaultStyle()
    Returns
    Type Description
    StyleInfoBase

    Default style object.

    Overrides
    VisualStyleBase.GetDefaultStyle()

    ShouldSerializeHorizontalScrollBar()

    Determines whether HorizontalScrollBar has been modified and its contents should be serialized at design-time.

    Declaration
    public bool ShouldSerializeHorizontalScrollBar()
    Returns
    Type Description
    System.Boolean

    True if contents were changed; False otherwise.

    ShouldSerializeVerticalScrollBar()

    Determines whether VerticalScrollBar has been modified and its contents should be serialized at design-time.

    Declaration
    public bool ShouldSerializeVerticalScrollBar()
    Returns
    Type Description
    System.Boolean

    True if contents were changed; False otherwise.

    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 - 2025 Syncfusion Inc. All Rights Reserved