System::Drawing::CharacterRange class

CharacterRange class

Represents a range of character positions in a string. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.

class CharacterRange

Methods

MethodDescription
CharacterRange(int32_t, int32_t)Constructs a new instance of CharacterRange class that represents the specified range.
CharacterRange()Constructs a new instance of CharacterRange class that represents an empty range.
get_First() constReturns the position of the first character of the range represented by the current object.
get_Length() constReturns the number of characters in the range represented by the current object.
operator!=(const CharacterRange&) constDetermines if the current and specified objects represent distinct ranges.
operator==(const CharacterRange&) constDetermines if the current and specified objects represent the same range.
set_First(int32_t)Sets the position of the first character of the range represented by the current object.
set_Length(int32_t)Returns the number of characters in the range represented by the current object.

See Also