Aspose::Cells::Drawing::ActiveXControls::SpinButtonActiveXControl class

SpinButtonActiveXControl class

Represents the SpinButton control.

class SpinButtonActiveXControl : public Aspose::Cells::Drawing::ActiveXControls::ActiveXControl

Methods

MethodDescription
ActiveXControl(ActiveXControl_Impl* impl)Constructs from an implementation object.
ActiveXControl(const ActiveXControl& src)Copy constructor.
ActiveXControl(const ActiveXControlBase& src)Constructs from a parent object.
ActiveXControlBase(ActiveXControlBase_Impl* impl)Constructs from an implementation object.
ActiveXControlBase(const ActiveXControlBase& src)Copy constructor.
GetBackOleColor()Gets and sets the ole color of the background.
GetData()Gets and sets the binary data of the control.
GetFont()Represents the font of the control.
GetForeOleColor()Gets and sets the ole color of the foreground.
GetHeight()Gets and sets the height of the control in unit of points.
GetIMEMode()Gets and sets the default run-time mode of the Input Method Editor for the control as it receives focus.
GetLinkedCell()Gets and sets the linked cell.
GetListFillRange()Gets and sets the list fill range.
GetMax()Gets and sets the maximum acceptable value.
GetMin()Gets and sets the minimum acceptable value.
GetMouseIcon()Gets and sets a custom icon to display as the mouse pointer for the control.
GetMousePointer()Gets and sets the type of icon displayed as the mouse pointer for the control.
GetOrientation()Gets and sets whether the SpinButton or ScrollBar is oriented vertically or horizontally.
GetPosition()Gets and sets the value.
GetShadow()Indicates whether to show a shadow.
GetSmallChange()Gets and sets the amount by which the Position property changes.
GetTextAlign()Represents how to align the text used by the control.
virtual GetType()Gets the type of the ActiveX control.
GetWidth()Gets and sets the width of the control in unit of points.
GetWorkbook()Gets the Workbook object.
IsAutoSize()Indicates whether the control will automatically resize to display its entire contents.
IsEnabled()Indicates whether the control can receive the focus and respond to user-generated events.
IsLocked()Indicates whether data in the control is locked for editing.
IsNull() constChecks whether the implementation object is nullptr.
IsTransparent()Indicates whether the control is transparent.
IsVisible()Indicates whether this control is visible.
explicit operator bool() constoperator bool()
operator=(const SpinButtonActiveXControl& src)operator=
operator=(const ActiveXControl& src)operator=
operator=(const ActiveXControlBase& src)operator=
SetBackOleColor(int32_t value)Gets and sets the ole color of the background.
SetForeOleColor(int32_t value)Gets and sets the ole color of the foreground.
SetHeight(double value)Gets and sets the height of the control in unit of points.
SetIMEMode(InputMethodEditorMode value)Gets and sets the default run-time mode of the Input Method Editor for the control as it receives focus.
SetIsAutoSize(bool value)Indicates whether the control will automatically resize to display its entire contents.
SetIsEnabled(bool value)Indicates whether the control can receive the focus and respond to user-generated events.
SetIsLocked(bool value)Indicates whether data in the control is locked for editing.
SetIsTransparent(bool value)Indicates whether the control is transparent.
SetIsVisible(bool value)Indicates whether this control is visible.
SetLinkedCell(const U16String& value)Gets and sets the linked cell.
SetLinkedCell(const char16_t* value)Gets and sets the linked cell.
SetListFillRange(const U16String& value)Gets and sets the list fill range.
SetListFillRange(const char16_t* value)Gets and sets the list fill range.
SetMax(int32_t value)Gets and sets the maximum acceptable value.
SetMin(int32_t value)Gets and sets the minimum acceptable value.
SetMouseIcon(const Vector <uint8_t>& value)Gets and sets a custom icon to display as the mouse pointer for the control.
SetMousePointer(ControlMousePointerType value)Gets and sets the type of icon displayed as the mouse pointer for the control.
SetOrientation(ControlScrollOrientation value)Gets and sets whether the SpinButton or ScrollBar is oriented vertically or horizontally.
SetPosition(int32_t value)Gets and sets the value.
SetShadow(bool value)Indicates whether to show a shadow.
SetSmallChange(int32_t value)Gets and sets the amount by which the Position property changes.
SetTextAlign(TextAlignmentType value)Represents how to align the text used by the control.
SetWidth(double value)Gets and sets the width of the control in unit of points.
SpinButtonActiveXControl(SpinButtonActiveXControl_Impl* impl)Constructs from an implementation object.
SpinButtonActiveXControl(const SpinButtonActiveXControl& src)Copy constructor.
SpinButtonActiveXControl(const ActiveXControl& src)Constructs from a parent object.
~ActiveXControl()Destructor.
~ActiveXControlBase()Destructor.
~SpinButtonActiveXControl()Destructor.

Fields

FieldDescription
_implThe implementation object.

Examples

Aspose::Cells::Startup();
//Initialize a new workbook.
Workbook book;

//Add a ToggleButtonActiveXControl.
Shape shape = book.GetWorksheets().Get(0).GetShapes().AddActiveXControl(ControlType::SpinButton, 1, 0, 1, 0, 100, 50);
SpinButtonActiveXControl activeXControl = (SpinButtonActiveXControl)shape.GetActiveXControl();


//Save the excel file.
book.Save(u"exmaple.xlsx");
Aspose::Cells::Cleanup();

See Also