RadioButtonActiveXControl

RadioButtonActiveXControl class

Represents a RadioButton ActiveX control.

class RadioButtonActiveXControl extends ToggleButtonActiveXControl;

Constructors

NameDescription
constructor(ToggleButtonActiveXControl)Constructs from a parent object convertible to this.

Properties

PropertyTypeDescription
groupNamestringGets and sets the group’s name.
alignmentControlCaptionAlignmentTypeGets and set the position of the Caption relative to the control.
isWordWrappedbooleanIndicates whether the contents of the control automatically wrap at the end of a line.
workbookWorkbookReadonly. Gets the Workbook object.
mouseIconUint8ArrayGets and sets a custom icon to display as the mouse pointer for the control.
mousePointerControlMousePointerTypeGets and sets the type of icon displayed as the mouse pointer for the control.
linkedCellstringGets and sets the linked cell.
listFillRangestringGets and sets the list fill range.
isEnabledbooleanIndicates whether the control can receive the focus and respond to user-generated events.
isLockedbooleanIndicates whether data in the control is locked for editing.
isTransparentbooleanIndicates whether the control is transparent.
iMEModeInputMethodEditorModeGets and sets the default run-time mode of the Input Method Editor for the control as it receives focus.
fontFontReadonly. Represents the font of the control.
textAlignTextAlignmentTypeRepresents how to align the text used by the control.
captionstringGets and set the descriptive text that appears on a control.
picturePositionControlPicturePositionTypeGets and set the location of the control’s picture relative to its caption.
specialEffectControlSpecialEffectTypeGets and sets the special effect of the control.
pictureUint8ArrayGets and sets the data of the picture.
acceleratorstringGets and sets the accelerator key for the control.
valueCheckValueTypeIndicates if the control is checked or not.
isTripleStatebooleanIndicates how the specified control will display Null values.

Methods

MethodDescription
getType()Gets the type of the ActiveX control.
getWidth()Gets and sets the width of the control in unit of points.
setWidth(number)Gets and sets the width of the control in unit of points.
getHeight()Gets and sets the height of the control in unit of points.
setHeight(number)Gets and sets the height of the control in unit of points.
getForeOleColor()Gets and sets the ole color of the foreground.
setForeOleColor(number)Gets and sets the ole color of the foreground.
getBackOleColor()Gets and sets the ole color of the background.
setBackOleColor(number)Gets and sets the ole color of the background.
isVisible()Indicates whether this control is visible.
setIsVisible(boolean)Indicates whether this control is visible.
getShadow()Indicates whether to show a shadow.
setShadow(boolean)Indicates whether to show a shadow.
isAutoSize()Indicates whether the control will automatically resize to display its entire contents.
setIsAutoSize(boolean)Indicates whether the control will automatically resize to display its entire contents.
getData()Gets and sets the binary data of the control.

constructor(ToggleButtonActiveXControl)

Constructs from a parent object convertible to this.

constructor(obj: ToggleButtonActiveXControl);

Parameters:

ParameterTypeDescription
objToggleButtonActiveXControlThe parent object.

groupName

Gets and sets the group’s name.

groupName : string;

alignment

Gets and set the position of the Caption relative to the control.

alignment : ControlCaptionAlignmentType;

isWordWrapped

Indicates whether the contents of the control automatically wrap at the end of a line.

isWordWrapped : boolean;

workbook

Readonly. Gets the Workbook object.

workbook : Workbook;

mouseIcon

Gets and sets a custom icon to display as the mouse pointer for the control.

mouseIcon : Uint8Array;

mousePointer

Gets and sets the type of icon displayed as the mouse pointer for the control.

mousePointer : ControlMousePointerType;

linkedCell

Gets and sets the linked cell.

linkedCell : string;

listFillRange

Gets and sets the list fill range.

listFillRange : string;

isEnabled

Indicates whether the control can receive the focus and respond to user-generated events.

isEnabled : boolean;

isLocked

Indicates whether data in the control is locked for editing.

isLocked : boolean;

isTransparent

Indicates whether the control is transparent.

isTransparent : boolean;

iMEMode

Gets and sets the default run-time mode of the Input Method Editor for the control as it receives focus.

iMEMode : InputMethodEditorMode;

font

Readonly. Represents the font of the control.

font : Font;

textAlign

Represents how to align the text used by the control.

textAlign : TextAlignmentType;

caption

Gets and set the descriptive text that appears on a control.

caption : string;

picturePosition

Gets and set the location of the control’s picture relative to its caption.

picturePosition : ControlPicturePositionType;

specialEffect

Gets and sets the special effect of the control.

specialEffect : ControlSpecialEffectType;

picture

Gets and sets the data of the picture.

picture : Uint8Array;

accelerator

Gets and sets the accelerator key for the control.

accelerator : string;

value

Indicates if the control is checked or not.

value : CheckValueType;

isTripleState

Indicates how the specified control will display Null values.

isTripleState : boolean;

Remarks

list type=“table”> Setting Description True The control will cycle through states for Yes, No, and Null values. The control appears dimmed (grayed) when its Value property is set to Null. False (Default) The control will cycle through states for Yes and No values. Null values display as if they were No values. </list

getType()

Gets the type of the ActiveX control.

getType() : ControlType;

Returns

ControlType

getWidth()

Gets and sets the width of the control in unit of points.

getWidth() : number;

setWidth(number)

Gets and sets the width of the control in unit of points.

setWidth(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getHeight()

Gets and sets the height of the control in unit of points.

getHeight() : number;

setHeight(number)

Gets and sets the height of the control in unit of points.

setHeight(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getForeOleColor()

Gets and sets the ole color of the foreground.

getForeOleColor() : number;

Remarks

Not applies to Image control.

setForeOleColor(number)

Gets and sets the ole color of the foreground.

setForeOleColor(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

Remarks

Not applies to Image control.

getBackOleColor()

Gets and sets the ole color of the background.

getBackOleColor() : number;

setBackOleColor(number)

Gets and sets the ole color of the background.

setBackOleColor(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

isVisible()

Indicates whether this control is visible.

isVisible() : boolean;

setIsVisible(boolean)

Indicates whether this control is visible.

setIsVisible(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getShadow()

Indicates whether to show a shadow.

getShadow() : boolean;

setShadow(boolean)

Indicates whether to show a shadow.

setShadow(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

isAutoSize()

Indicates whether the control will automatically resize to display its entire contents.

isAutoSize() : boolean;

setIsAutoSize(boolean)

Indicates whether the control will automatically resize to display its entire contents.

setIsAutoSize(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getData()

Gets and sets the binary data of the control.

getData() : Uint8Array;