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

ParameterTypeDescription
fontNameSystem::StringFont’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