A segment using TextAnchors as start and end positions.
Declaration Syntax
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
AnchorSegment(TextAnchor, TextAnchor) |
Creates a new AnchorSegment using the specified anchors.
The anchors must have SurviveDeletion set to true.
| |
AnchorSegment(TextDocument, ISegment) |
Creates a new AnchorSegment that creates new anchors.
| |
AnchorSegment(TextDocument, Int32, Int32) |
Creates a new AnchorSegment that creates new anchors.
| |
Contains(ISegment, Int32, Int32) |
Gets whether segment fully contains the specified segment.
(Inherited from ISegmentExtensions.) | |
Contains(ISegment, ISegment) |
Gets whether thisSegment fully contains the specified segment.
(Inherited from ISegmentExtensions.) | |
EndOffset |
Gets the end offset of the segment.
| |
Equals(Object) | (Inherited from Object.) | |
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) | |
Length |
Gets the length of the segment.
| |
Offset |
Gets the start offset of the segment.
| |
ToString()()()() | (Overrides Object.ToString()()()().) |
Remarks
For the constructors creating new anchors, the start position will be AfterInsertion and the end position will be BeforeInsertion. Should the end position move before the start position, the segment will have length 0.
Inheritance Hierarchy
Object | |
AnchorSegment |
See Also
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238