System::Drawing::Graphics::MeasureCharacterRanges method

Graphics::MeasureCharacterRanges 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)
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