AvalonEdit
AnchorSegment Class
NamespacesICSharpCode.AvalonEdit.DocumentAnchorSegment
A segment using TextAnchors as start and end positions.
Declaration Syntax
C#Visual BasicVisual C++
public sealed class AnchorSegment : ISegment
Public NotInheritable Class AnchorSegment _
	Implements ISegment
public ref class AnchorSegment sealed : ISegment
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
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)
Determines whether the specified Object is equal to the current 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()()()()
Returns a String that represents the current Object.
(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