Class ScrollerVisualStyle
Contains the list of properties that are used to customize the appearance of the scroll control.
Inheritance
Implements
Inherited Members
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
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
GetDefaultStyle()
Provide the default style of the ScrollerVisualStyle.
Declaration
protected override StyleInfoBase GetDefaultStyle()
Returns
Type | Description |
---|---|
StyleInfoBase | Default style object. |
Overrides
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. |