ToArray()

FontFallBackRule::ToArray() method

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

System::ArrayPtr<System::String> Aspose::Slides::FontFallBackRule::ToArray() override

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();

FontFallBackRule::ToArray(int32_t, int32_t) method

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

System::ArrayPtr<System::String> Aspose::Slides::FontFallBackRule::ToArray(int32_t startIndex, int32_t count) override

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