[]
        
(Showing Draft Content)

C1.C1Preview.RenderTextFragmentBase.GetCharRangeRegion

GetCharRangeRegion Method

GetCharRangeRegion(int, int)

Gets a bounding Region for a range of characters. The region is relative to the top left corner of the fragment's inner area.

Declaration
public Region GetCharRangeRegion(int startCharIndex, int length)
Parameters
Type Name Description
int startCharIndex

The index of the first character in the range in the current fragment.

int length

The number of characters in the range.

Returns
Type Description
Region

The bounding region for the specified range, or null if the range is invalid.