导航:  GdiPlus Classes > Structures >

CharacterRange

上一页返回章节概述下一页

A CharacterRange structure specifies a range of character positions within a string.

 

C++ Syntax

 

typedef struct CharacterRange {

INT First;

INT Length;

}

 

FreeBASIC 语法

 

TYPE CharacterRange

First AS INT_

Length AS INT_

END TYPE

 

成员

 

First

 

Specifies the first position of this range.

 

Length

 

Specifies the number of positions in this range.

 

备注

 

A character range is a range of character positions within a string of text. The area of the display that is occupied by a group of characters that are specified by the character range is the bounding region. A character range is set by GdipSetStringFormatMeasurableCharacterRanges. The number of ranges that are currently set can be determined by calling GdipGetStringFormatMeasurableCharacterRangeCount. This number is also the number of regions expected to be obtained by the GdipMeasureCharacterRanges function.