Class RadioButtonActiveXControl

Class RadioButtonActiveXControl

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

Represents a RadioButton ActiveX control.

public class RadioButtonActiveXControl : ToggleButtonActiveXControl

Inheritance

objectActiveXControlBaseActiveXControlToggleButtonActiveXControlRadioButtonActiveXControl

Inherited Members

ToggleButtonActiveXControl.Type, ToggleButtonActiveXControl.Caption, ToggleButtonActiveXControl.PicturePosition, ToggleButtonActiveXControl.SpecialEffect, ToggleButtonActiveXControl.Picture, ToggleButtonActiveXControl.Accelerator, ToggleButtonActiveXControl.Value, ToggleButtonActiveXControl.IsTripleState, 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.RadioButton, 1, 0, 1, 0, 100, 50);
RadioButtonActiveXControl activeXControl = (RadioButtonActiveXControl)shape.ActiveXControl;

//do your business

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

Properties

Alignment

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

public ControlCaptionAlignmentType Alignment { get; set; }

Property Value

ControlCaptionAlignmentType

Examples

csharp
[C#]
activeXControl.Alignment = Aspose.Cells.Drawing.ActiveXControls.ControlCaptionAlignmentType.Left;

GroupName

Gets and sets the group’s name.

public string GroupName { get; set; }

Property Value

string

Examples

csharp
[C#]
activeXControl.GroupName = "GroupName123";

IsWordWrapped

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

public bool IsWordWrapped { get; set; }

Property Value

bool

Examples

csharp
[C#]
if(activeXControl.IsWordWrapped == false)
{
    activeXControl.IsWordWrapped = true;
}

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.RadioButton)
{
    //do something
}