Class ComboBoxShapeImpl
This class represents combo box object.
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation.Shapes
Assembly: Syncfusion.XlsIO.NET.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. |
| 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. |
| object | parent | Parent object for the new combo box object. |
| MsofbtSpContainer | shapeContainer | Shape's container. |
| ExcelParseOptions | options | Parsing options. |
| List<ObjSubRecord> | subRecords |
Fields
ShapeInstance
Shape instance.
Declaration
public const int ShapeInstance = 201
Field Value
| Type |
|---|
| int |
ShapeVersion
Shape version.
Declaration
public const int ShapeVersion = 2
Field Value
| Type |
|---|
| int |
Properties
ComboType
Gets type of the combo box object.
Declaration
public ExcelComboType ComboType { get; }
Property Value
| Type |
|---|
| ExcelComboType |
Display3DShading
Gets or sets value indicating whether 3D shadow is present.
Declaration
public bool Display3DShading { get; set; }
Property Value
| Type |
|---|
| bool |
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 |
|---|
| int |
Hyperlink
Get object that represents the hyperlink for the shape.
Declaration
public IHyperLink Hyperlink { get; }
Property Value
| Type |
|---|
| IHyperLink |
LinkedCell
Gets or sets the worksheet range linked to the control's value.
Declaration
public IRange LinkedCell { get; set; }
Property Value
| Type |
|---|
| IRange |
ListFillRange
Gets or sets the worksheet range used to fill the specified list box.
Declaration
public IRange ListFillRange { get; set; }
Property Value
| Type |
|---|
| IRange |
SelectedIndex
Gets or sets selected item index of the combo box.
Declaration
public int SelectedIndex { get; set; }
Property Value
| Type |
|---|
| int |
SelectedValue
Gets value selected in combobox.
Declaration
public string SelectedValue { get; }
Property Value
| Type |
|---|
| string |
Methods
Clone(object, Dictionary<string, string>, Dictionary<int, int>, bool)
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 |
|---|---|---|
| object | parent | New parent for the shape object. |
| Dictionary<string, string> | hashNewNames | Dictionary with new worksheet names. |
| Dictionary<int, int> | dicFontIndexes | Dictionary with new font indexes. |
| bool | 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. |