ToArray()

IFontFallBackRule::ToArray() method

Creates and returns an array with all FallBack fonts for this rule.

virtual System::ArrayPtr<System::String> Aspose::Slides::IFontFallBackRule::ToArray()=0

Return Value

Array of System::String

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 all font-names as array
ArrayPtr<String> fontNames = newRule->ToArray();

IFontFallBackRule::ToArray(int32_t, int32_t) method

Creates and returns an array with all FallBack fonts from the specified range in list.

virtual System::ArrayPtr<System::String> Aspose::Slides::IFontFallBackRule::ToArray(int32_t startIndex, int32_t count)=0

Arguments

ParameterTypeDescription
startIndexint32_tAn index of a first font to add.
countint32_tA number of fonts to add.

Return Value

Array of System::String

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 a last two font-names as array
ArrayPtr<String> fontNames = newRule->ToArray(2, 2);

See Also