MeasureCharacterRanges()

Graphics::MeasureCharacterRanges(const System::String&, const SharedPtr<Font>&, RectangleF, const SharedPtr<StringFormat>&) method

Returns an array of regions each of which bounds character positions in the specified string.

ArrayPtr<SharedPtr<Region>> System::Drawing::Graphics::MeasureCharacterRanges(const System::String &text, const SharedPtr<Font> &font, RectangleF layoutRect, const SharedPtr<StringFormat> &stringFormat)

Arguments

ParameterTypeDescription
textconst System::String&The string to measure
fontconst SharedPtr<Font>&The font used during the measurement of the string
layoutRectRectangleFThe layout rectangle used during the measurement of the string
stringFormatconst SharedPtr<StringFormat>&The string format, contaions the character ranges to measure

See Also