IndexOf()
FontFallBackRule::IndexOf(System::String) method
Returns an index of the specified rule in the collection.
int32_t Aspose::Slides::FontFallBackRule::IndexOf(System::String fontName) override
Arguments
Parameter | Type | Description |
---|---|---|
fontName | System::String | Font’s name to find. |
Return Value
Index of a font or -1 if font not found in list.
Remarks
// Create a rule contains a list of fonts.
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho, MS Gothic, Tahoma, Times New Roman");
// Get index of Tahoma.
int32_t tahomaIndex = newRule->IndexOf(u"Tahoma");
See Also
- Class String
- Class FontFallBackRule
- Namespace Aspose::Slides
- Library Aspose.Slides