C# 클래스 Microsoft.Languages.Core.Text.TextRange

상속: IExpandableTextRange, ICloneable
파일 보기 프로젝트 열기: Microsoft/RTVS 1 사용 예제들

공개 메소드들

메소드 설명
AreEqual ( ITextRange left, ITextRange right ) : bool

Determines if ranges are equal. Ranges are equal when they are either both null or both are not null and their coordinates are equal.

Clone ( ) : object

Creates copy of the text range object via memberwise cloning

Contains ( ITextRange range ) : bool

Determines if text range fully contains another range

Contains ( ITextRange range, ITextRange other ) : bool

Determines if range contains another range

Contains ( ITextRange range, ITextRange other, bool inclusiveEnd ) : bool

Determines if range contains another range

Contains ( ITextRange range, int position ) : bool

Determines if range contains given position

Contains ( int position ) : bool

Determines if range contains given position

Contains ( int rangeStart, int rangeLength, int position ) : bool

Determines if range contains given position

ContainsInclusiveEnd ( ITextRange range, ITextRange other ) : bool

Determines if range contains another range or it contains start point of the other range and their end points are the same.

ContainsUsingInclusion ( int position ) : bool

Determines if range contains given position

Expand ( int startOffset, int endOffset ) : void
Intersect ( ITextRange range ) : bool

Finds out of range intersects another range

Intersect ( ITextRange range1, ITextRange range2 ) : bool

Finds out if range intersects another range

Intersect ( ITextRange range1, int rangeStart2, int rangeLength2 ) : bool

Finds out if range intersects another range

Intersect ( int start, int length ) : bool

Finds out of range intersects another range

Intersect ( int rangeStart1, int rangeLength1, int rangeStart2, int rangeLength2 ) : bool

Finds out if range intersects another range

Intersection ( ITextRange range1, ITextRange range2 ) : ITextRange

Calculates range that is an intersection of the supplied ranges.

Intersection ( ITextRange range1, int rangeStart, int rangeLength ) : ITextRange

Calculates range that is an intersection of the supplied ranges.

IsValid ( ) : bool

Finds out if range represents valid text range (it's length is greater than zero)

IsValid ( ITextRange range ) : bool

Finds out if range represents valid text range (when range is not null and it's length is greater than zero)

TextRange ( ITextRange range ) : System

Creates text range based on another text range

TextRange ( int position ) : System

Creates text range starting at given position and length of zero.

Union ( ITextRange range1, ITextRange range2 ) : ITextRange

Calculates range that includes both supplied ranges.

Union ( ITextRange range1, int rangeStart, int rangeLength ) : ITextRange

Calculates range that includes both supplied ranges.

비공개 메소드들

메소드 설명
Empty ( ) : void
FromBounds ( int start, int end ) : TextRange
Shift ( int offset ) : void
TextRange ( ) : System
TextRange ( int start, int length ) : System
ToString ( ) : string

메소드 상세

AreEqual() 공개 정적인 메소드

Determines if ranges are equal. Ranges are equal when they are either both null or both are not null and their coordinates are equal.
public static AreEqual ( ITextRange left, ITextRange right ) : bool
left ITextRange First range
right ITextRange Second range
리턴 bool

Clone() 공개 메소드

Creates copy of the text range object via memberwise cloning
public Clone ( ) : object
리턴 object

Contains() 공개 메소드

Determines if text range fully contains another range
public Contains ( ITextRange range ) : bool
range ITextRange
리턴 bool

Contains() 공개 정적인 메소드

Determines if range contains another range
public static Contains ( ITextRange range, ITextRange other ) : bool
range ITextRange
other ITextRange
리턴 bool

Contains() 공개 정적인 메소드

Determines if range contains another range
public static Contains ( ITextRange range, ITextRange other, bool inclusiveEnd ) : bool
range ITextRange
other ITextRange
inclusiveEnd bool
리턴 bool

Contains() 공개 정적인 메소드

Determines if range contains given position
public static Contains ( ITextRange range, int position ) : bool
range ITextRange Text range
position int Position
리턴 bool

Contains() 공개 메소드

Determines if range contains given position
public Contains ( int position ) : bool
position int
리턴 bool

Contains() 공개 정적인 메소드

Determines if range contains given position
public static Contains ( int rangeStart, int rangeLength, int position ) : bool
rangeStart int Start of the text range
rangeLength int Length of the text range
position int Position
리턴 bool

ContainsInclusiveEnd() 공개 정적인 메소드

Determines if range contains another range or it contains start point of the other range and their end points are the same.
public static ContainsInclusiveEnd ( ITextRange range, ITextRange other ) : bool
range ITextRange
other ITextRange
리턴 bool

ContainsUsingInclusion() 공개 메소드

Determines if range contains given position
public ContainsUsingInclusion ( int position ) : bool
position int
리턴 bool

Expand() 공개 메소드

public Expand ( int startOffset, int endOffset ) : void
startOffset int
endOffset int
리턴 void

Intersect() 공개 메소드

Finds out of range intersects another range
public Intersect ( ITextRange range ) : bool
range ITextRange
리턴 bool

Intersect() 공개 정적인 메소드

Finds out if range intersects another range
public static Intersect ( ITextRange range1, ITextRange range2 ) : bool
range1 ITextRange First text range
range2 ITextRange Second text range
리턴 bool

Intersect() 공개 정적인 메소드

Finds out if range intersects another range
public static Intersect ( ITextRange range1, int rangeStart2, int rangeLength2 ) : bool
range1 ITextRange
rangeStart2 int Start of the second range
rangeLength2 int Length of the second range
리턴 bool

Intersect() 공개 메소드

Finds out of range intersects another range
public Intersect ( int start, int length ) : bool
start int Start of another range
length int Length of another range
리턴 bool

Intersect() 공개 정적인 메소드

Finds out if range intersects another range
public static Intersect ( int rangeStart1, int rangeLength1, int rangeStart2, int rangeLength2 ) : bool
rangeStart1 int Start of the first range
rangeLength1 int Length of the first range
rangeStart2 int Start of the second range
rangeLength2 int Length of the second range
리턴 bool

Intersection() 공개 정적인 메소드

Calculates range that is an intersection of the supplied ranges.
public static Intersection ( ITextRange range1, ITextRange range2 ) : ITextRange
range1 ITextRange
range2 ITextRange
리턴 ITextRange

Intersection() 공개 정적인 메소드

Calculates range that is an intersection of the supplied ranges.
public static Intersection ( ITextRange range1, int rangeStart, int rangeLength ) : ITextRange
range1 ITextRange
rangeStart int
rangeLength int
리턴 ITextRange

IsValid() 공개 메소드

Finds out if range represents valid text range (it's length is greater than zero)
public IsValid ( ) : bool
리턴 bool

IsValid() 공개 정적인 메소드

Finds out if range represents valid text range (when range is not null and it's length is greater than zero)
public static IsValid ( ITextRange range ) : bool
range ITextRange
리턴 bool

TextRange() 공개 메소드

Creates text range based on another text range
public TextRange ( ITextRange range ) : System
range ITextRange Text range to use as position source
리턴 System

TextRange() 공개 메소드

Creates text range starting at given position and length of zero.
public TextRange ( int position ) : System
position int Start position
리턴 System

Union() 공개 정적인 메소드

Calculates range that includes both supplied ranges.
public static Union ( ITextRange range1, ITextRange range2 ) : ITextRange
range1 ITextRange
range2 ITextRange
리턴 ITextRange

Union() 공개 정적인 메소드

Calculates range that includes both supplied ranges.
public static Union ( ITextRange range1, int rangeStart, int rangeLength ) : ITextRange
range1 ITextRange
rangeStart int
rangeLength int
리턴 ITextRange