for WinForms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.0 KiB

// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
// <version>$Revision$</version>
// </file>
using System;
namespace ICSharpCode.TextEditor.Document
{
/// <summary>
/// This interface is used to describe a span inside a text sequence
/// </summary>
public class AbstractSegment : ISegment
{
protected int length = -1;
protected int offset = -1;
public override string ToString()
{
return string.Format(
"[AbstractSegment: Offset = {0}, Length = {1}]",
Offset,
Length);
}
#region ICSharpCode.TextEditor.Document.ISegment interface implementation
public virtual int Offset
{
get => offset;
set => offset = value;
}
public virtual int Length
{
get => length;
set => length = value;
}
#endregion
}
}