Class ExternNamesCollection
Summary description for ExternNamesCollection.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation.Collections
Assembly: Syncfusion.XlsIO.NET.dll
Syntax
public class ExternNamesCollection : CollectionBaseEx<ExternNameImpl>, IList<ExternNameImpl>, ICollection<ExternNameImpl>, IEnumerable<ExternNameImpl>, IEnumerable, IParentApplication, ICloneParent
Constructors
ExternNamesCollection(IApplication, Object)
Creates collection with specified Application and Parent.
Declaration
public ExternNamesCollection(IApplication application, object parent)
Parameters
Type | Name | Description |
---|---|---|
IApplication | application | Application object for the collection. |
System.Object | parent | Parent object for the collection. |
Properties
Item[Int32]
Returns extern name. Read-only.
Declaration
public ExternNameImpl this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type |
---|
ExternNameImpl |
Item[String]
Returns extern name. Read-only.
Declaration
public ExternNameImpl this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Property Value
Type |
---|
ExternNameImpl |
ParentWorkbook
Returns parent workbook. Read-only.
Declaration
public ExternWorkbookImpl ParentWorkbook { get; }
Property Value
Type |
---|
ExternWorkbookImpl |
Methods
Add(ExternNameRecord)
Adds new name to the collection.
Declaration
public int Add(ExternNameRecord name)
Parameters
Type | Name | Description |
---|---|---|
ExternNameRecord | name | Name to add. |
Returns
Type | Description |
---|---|
System.Int32 | Index of added extern name. |
Add(String)
Adds new name to the collection.
Declaration
public int Add(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name to add. |
Returns
Type | Description |
---|---|
System.Int32 | Index of added extern name. |
Add(String, Boolean)
Adds new name to the collection.
Declaration
public int Add(string name, bool isAddIn)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name to add. |
System.Boolean | isAddIn |
Returns
Type | Description |
---|---|
System.Int32 | Index of added extern name. |
Clone(Object)
Creates copy of the collection.
Declaration
public override object Clone(object parent)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parent | Parent object for the new collection. |
Returns
Type |
---|
System.Object |
Overrides
Contains(String)
Checks if collection contains extern name with specified name.
Declaration
public bool Contains(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name to find. |
Returns
Type | Description |
---|---|
System.Boolean | Boolean value indicating whether collection contains extern name. |
GetNameIndex(String)
Return index to the extern name.
Declaration
public int GetNameIndex(string strName)
Parameters
Type | Name | Description |
---|---|---|
System.String | strName | Name to locate. |
Returns
Type | Description |
---|---|
System.Int32 | Index to the extern name, or -1 if name was not found. |
GetNewIndex(Int32)
Get new index for extern name (to remove duplicated extern names).
Declaration
public int GetNewIndex(int iNameIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | iNameIndex | Name index. |
Returns
Type | Description |
---|---|
System.Int32 | Updated name index. |
Serialize(OffsetArrayList)
Declaration
public void Serialize(OffsetArrayList records)
Parameters
Type | Name | Description |
---|---|---|
OffsetArrayList | records |