FontFallBackRuleIndexOf Method

Returns an index of the specified rule in the collection.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 20.3.0.0 (20.3)
Syntax
public int IndexOf(
	string fontName
)

Parameters

fontName
Type: SystemString
Font's name to find.

Return Value

Type: Int32
Index of a font or -1 if font not found in list.

Implements

IFontFallBackRuleIndexOf(String)
Examples
[C#]
// Create a rule contains a list of fonts.
IFontFallBackRule newRule = new FontFallBackRule(0x3040, 0x309F, "MS Mincho, MS Gothic, Tahoma, Times New Roman");

// Get index of Tahoma.
int tahomaIndex = newRule.IndexOf("Tahoma");
See Also