Class ComboBoxShapeImpl
This class represents combo box object.
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation.Shapes
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class ComboBoxShapeImpl : ShapeImpl, IDisposable, ICloneParent, INamedObject, IComboBoxShape, IShape, IParentApplication
Constructors
ComboBoxShapeImpl(IApplication, Object)
Initializes new instance of the combo box item.
Declaration
public ComboBoxShapeImpl(IApplication application, object parent)
Parameters
Type | Name | Description |
---|---|---|
IApplication | application | Application object for the new combo box object. |
System.Object | parent | Parent object for the new combo box object. |
ComboBoxShapeImpl(IApplication, Object, MsofbtSpContainer, ExcelParseOptions, List<ObjSubRecord>)
Initializes new instance of the combo box item.
Declaration
public ComboBoxShapeImpl(IApplication application, object parent, MsofbtSpContainer shapeContainer, ExcelParseOptions options, List<ObjSubRecord> subRecords)
Parameters
Type | Name | Description |
---|---|---|
IApplication | application | Application object for the new combo box object. |
System.Object | parent | Parent object for the new combo box object. |
MsofbtSpContainer | shapeContainer | Shape's container. |
ExcelParseOptions | options | Parsing options. |
System.Collections.Generic.List<ObjSubRecord> | subRecords |
Fields
ShapeInstance
Shape instance.
Declaration
public const int ShapeInstance = 201
Field Value
Type | Description |
---|---|
System.Int32 |
ShapeVersion
Shape version.
Declaration
public const int ShapeVersion = 2
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
ComboType
Gets type of the combo box object.
Declaration
public ExcelComboType ComboType { get; }
Property Value
Type | Description |
---|---|
ExcelComboType |
Display3DShading
Gets or sets value indicating whether 3D shadow is present.
Declaration
public bool Display3DShading { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DropDownLines
Gets or sets the number of list lines displayed in the drop-down portion of a combo box.
Declaration
public int DropDownLines { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Hyperlink
Get object that represents the hyperlink for the shape.
Declaration
public IHyperLink Hyperlink { get; }
Property Value
Type | Description |
---|---|
IHyperLink |
LinkedCell
Gets or sets the worksheet range linked to the control's value.
Declaration
public IRange LinkedCell { get; set; }
Property Value
Type | Description |
---|---|
IRange |
ListFillRange
Gets or sets the worksheet range used to fill the specified list box.
Declaration
public IRange ListFillRange { get; set; }
Property Value
Type | Description |
---|---|
IRange |
SelectedIndex
Gets or sets selected item index of the combo box.
Declaration
public int SelectedIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SelectedValue
Gets value selected in combobox.
Declaration
public string SelectedValue { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Clone(Object, Dictionary<String, String>, Dictionary<Int32, Int32>, Boolean)
Creates a clone of the current shape.
Declaration
public override IShape Clone(object parent, Dictionary<string, string> hashNewNames, Dictionary<int, int> dicFontIndexes, bool addToCollections)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parent | New parent for the shape object. |
System.Collections.Generic.Dictionary<System.String, System.String> | hashNewNames | Dictionary with new worksheet names. |
System.Collections.Generic.Dictionary<System.Int32, System.Int32> | dicFontIndexes | Dictionary with new font indexes. |
System.Boolean | addToCollections | Indicates whether we should add created shape into all necessary parent collections. |
Returns
Type | Description |
---|---|
IShape | A copy of the current shape. |
Overrides
OnPrepareForSerialization()
This method is called inside of PrepareForSerialization to make shape-dependent preparations.
Declaration
protected override void OnPrepareForSerialization()
Overrides
SerializeShape(MsofbtSpgrContainer)
Serializes current shape.
Declaration
[CLSCompliant(false)]
protected override void SerializeShape(MsofbtSpgrContainer spgrContainer)
Parameters
Type | Name | Description |
---|---|---|
MsofbtSpgrContainer | spgrContainer | Container that will receive this comment. |