Class FontSubstRuleCollection
A collection of FontSubstRule objects that define font substitution mappings for the presentation.
Inherited Members
Namespace: DRIT.Presentation
Assembly: DRIT.Presentation.dll
Syntax
public class FontSubstRuleCollection : IList<FontSubstRule>, ICollection<FontSubstRule>, IEnumerable<FontSubstRule>, IEnumerable
Properties
Count
Gets the number of items in this collection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
IsReadOnly
Gets or sets whether is read only is enabled.
Declaration
public bool IsReadOnly { get; }
Property Value
| Type | Description |
|---|---|
| bool |
this[int]
Gets or sets the value associated with this object.
Declaration
public FontSubstRule this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type | Description |
|---|---|
| FontSubstRule |
Methods
Add(FontSubstRule)
Adds the value to this font subst rule collection.
Declaration
public void Add(FontSubstRule item)
Parameters
| Type | Name | Description |
|---|---|---|
| FontSubstRule | item | The item to add, remove, or inspect. |
Add(string, string)
Adds the value to this font subst rule collection.
Declaration
public FontSubstRule Add(string sourceFontName, string destFontName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | sourceFontName | The source font name supplied to this operation. |
| string | destFontName | The dest font name supplied to this operation. |
Returns
| Type | Description |
|---|---|
| FontSubstRule | The newly added value. |
Clear()
Removes all entries from this font subst rule collection.
Declaration
public void Clear()
Contains(FontSubstRule)
Determines whether this font subst rule collection contains the specified item.
Declaration
public bool Contains(FontSubstRule item)
Parameters
| Type | Name | Description |
|---|---|---|
| FontSubstRule | item | The item to add, remove, or inspect. |
Returns
| Type | Description |
|---|---|
| bool | true if the operation succeeds; otherwise, false. |
CopyTo(FontSubstRule[], int)
Copies the collection items to the supplied destination array.
Declaration
public void CopyTo(FontSubstRule[] array, int arrayIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| FontSubstRule[] | array | The destination array that receives the copied items. |
| int | arrayIndex |
GetEnumerator()
Returns an enumerator that iterates through this collection.
Declaration
public IEnumerator<FontSubstRule> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<FontSubstRule> | An enumerator that iterates through this collection. |
IndexOf(FontSubstRule)
Returns the zero-based index of the specified item.
Declaration
public int IndexOf(FontSubstRule item)
Parameters
| Type | Name | Description |
|---|---|---|
| FontSubstRule | item | The item to add, remove, or inspect. |
Returns
| Type | Description |
|---|---|
| int | The index of value produced by the operation. |
Insert(int, FontSubstRule)
Inserts an item at the specified zero-based index.
Declaration
public void Insert(int index, FontSubstRule item)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the item. |
| FontSubstRule | item | The item to add, remove, or inspect. |
Remove(FontSubstRule)
Removes the value from this font subst rule collection.
Declaration
public bool Remove(FontSubstRule item)
Parameters
| Type | Name | Description |
|---|---|---|
| FontSubstRule | item | The item to add, remove, or inspect. |
Returns
| Type | Description |
|---|---|
| bool | true if the operation succeeds; otherwise, false. |
RemoveAt(int)
Removes the item at the specified zero-based index.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the item. |