#region Using Directives using System; #endregion Using Directives namespace ScintillaNET { /// /// Defines a run of styled text in a control /// public struct StyleRun { #region Fields /// /// Represents a new instance of the struct with member data left uninitialized. /// public static readonly StyleRun Empty = new StyleRun(); private int _length; private int _style; #endregion Fields #region Properties /// /// Gets or sets length of this . /// /// An representing the length of this . public int Length { get { return _length; } set { _length = value; } } /// /// Gets or sets the style index of this . /// /// An representing the zero-based style index of this . public int Style { get { return _style; } set { _style = value; } } #endregion Properties #region Constructors /// /// Initializes a new instance of the struct. /// /// The length of the run. /// The zero-based index of the style that the run represents. public StyleRun(int length, int style) { _length = length; _style = style; } #endregion Constructors } }