Interface IHTMLFormatsCollection
An interface IHTMLFormatsCollection.
Inherited Members
Namespace: Syncfusion.Windows.Forms.HTMLUI
Assembly: Syncfusion.HTMLUI.Windows.dll
Syntax
public interface IHTMLFormatsCollection : IList, IHTMLCollection, ICollection, IEnumerable
Properties
Item[Int32]
Gets or sets the format for the specified index. Type safe override.
Declaration
IHTMLFormat this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | index value |
Property Value
Type |
---|
IHTMLFormat |
Item[String]
Gets or sets the format for the specified element name. Name is case insensitive.
Declaration
IHTMLFormat this[string name] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name | string name value |
Property Value
Type |
---|
IHTMLFormat |
Methods
Add(IHTMLFormat)
Adds the format to the collection.
Declaration
int Add(IHTMLFormat format)
Parameters
Type | Name | Description |
---|---|---|
IHTMLFormat | format | Reference to the format. |
Returns
Type | Description |
---|---|
System.Int32 | Index of the format in the array. |
AddRange(IHTMLFormat[])
Adds the array of formats to the collection.
Declaration
void AddRange(IHTMLFormat[] formats)
Parameters
Type | Name | Description |
---|---|---|
IHTMLFormat[] | formats | Array of formats. |
Contains(IHTMLFormat)
Overloaded. Indicates whether the collection contains the specified format.
Declaration
bool Contains(IHTMLFormat format)
Parameters
Type | Name | Description |
---|---|---|
IHTMLFormat | format | Format reference for check. |
Returns
Type | Description |
---|---|
System.Boolean | TRUE if collection contains the format; FALSE otherwise. |
Contains(String)
Indicates whether the collection contains the format with the specified name.
Declaration
bool Contains(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Case insensitive name of the format. |
Returns
Type | Description |
---|---|
System.Boolean | TRUE if collection contains the format; FALSE otherwise. |
IndexOf(IHTMLFormat)
Overloaded. Returns the index of the format. If the collection does not contain the format -1 is returned.
Declaration
int IndexOf(IHTMLFormat format)
Parameters
Type | Name | Description |
---|---|---|
IHTMLFormat | format | Format whose index is needed. |
Returns
Type | Description |
---|---|
System.Int32 | Zero based index of format; -1 otherwise. |
IndexOf(String)
Returns the index of the format with the specified name.
Declaration
int IndexOf(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Case insensitive name of the format. |
Returns
Type | Description |
---|---|
System.Int32 | Zero based index of the format; -1 otherwise. |
Remove(IHTMLFormat)
Overloaded. Removes the format from the collection, if it belongs to it.
Declaration
void Remove(IHTMLFormat format)
Parameters
Type | Name | Description |
---|---|---|
IHTMLFormat | format | Format whose reference must be removed from the collection. |
Remove(String)
Removes the format with the specified name.
Declaration
void Remove(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Case insensitive name of the format which must be removed. |