Class ScrollBarActiveXControl

Class ScrollBarActiveXControl

Namespace: Aspose.Cells.Drawing.ActiveXControls
Assembly: Aspose.Cells.dll (25.2.0)

Represents the ScrollBar control.

public class ScrollBarActiveXControl : SpinButtonActiveXControl

Inheritance

objectActiveXControlBaseActiveXControlSpinButtonActiveXControlScrollBarActiveXControl

Inherited Members

SpinButtonActiveXControl.Type, SpinButtonActiveXControl.Min, SpinButtonActiveXControl.Max, SpinButtonActiveXControl.Position, SpinButtonActiveXControl.SmallChange, SpinButtonActiveXControl.Orientation, ActiveXControl.IsEnabled, ActiveXControl.IsLocked, ActiveXControl.IsTransparent, ActiveXControl.IsAutoSize, ActiveXControl.IMEMode, ActiveXControl.Font, ActiveXControl.TextAlign, ActiveXControl.Data, ActiveXControlBase.Workbook, ActiveXControlBase.Type, ActiveXControlBase.Width, ActiveXControlBase.Height, ActiveXControlBase.MouseIcon, ActiveXControlBase.MousePointer, ActiveXControlBase.ForeOleColor, ActiveXControlBase.BackOleColor, ActiveXControlBase.IsVisible, ActiveXControlBase.Shadow, ActiveXControlBase.LinkedCell, ActiveXControlBase.ListFillRange, ActiveXControlBase.Data, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Examples

csharp
[C#]
//Initialize a new workbook.
Workbook book = new Workbook();

//Add a ToggleButtonActiveXControl.
Shape shape = book.Worksheets[0].Shapes.AddActiveXControl(ControlType.ScrollBar, 1, 0, 1, 0, 100, 50);
ScrollBarActiveXControl activeXControl = (ScrollBarActiveXControl)shape.ActiveXControl;

//do your business

//Save the excel file.
book.Save("exmaple.xlsx");

Properties

LargeChange

Gets and sets the amount by which the Position property changes

public int LargeChange { get; set; }

Property Value

int

Examples

csharp
[C#]
activeXControl.LargeChange = 5;

Type

Gets the type of the ActiveX control.

public override ControlType Type { get; }

Property Value

ControlType

Examples

csharp
[C#]
if(activeXControl.Type == Aspose.Cells.Drawing.ActiveXControls.ControlType.ScrollBar)
{
    //do something
}