LayoutFarm.TextBreak.WordSpan.GetChar C# (CSharp) Method

GetChar() public method

public GetChar ( int index, TextBuffer textBuffer ) : char
index int
textBuffer TextBuffer
return char
        public char GetChar(int index, TextBuffer textBuffer)
        {
            return textBuffer.GetChar(startAt + index);
        }
        public string GetString(TextBuffer textBuffer)

Usage Example

Example #1
0
 public bool SameTextContent(WordSpan another, TextBuffer textBuffer)
 {
     if (another.len == this.len)
     {
         for (int i = another.len - 1; i >= 0; --i)
         {
             if (this.GetChar(i, textBuffer) != another.GetChar(i, textBuffer))
             {
                 return(false);
             }
         }
         return(true);
     }
     return(false);
     //return this.startAt == another.startAt && this.len == another.len;
 }
All Usage Examples Of LayoutFarm.TextBreak.WordSpan::GetChar