AvalonStudio.TextEditor.Document.TextDocument.GetCharAt C# (CSharp) 메소드

GetCharAt() 공개 메소드

public GetCharAt ( int offset ) : char
offset int
리턴 char
		public char GetCharAt(int offset)
		{
			DebugVerifyAccess(); // frequently called, so must be fast in release builds
			return rope[offset];
		}

Usage Example

 private void CloseBracket(TextEditor.TextEditor editor, TextDocument document, string text)
 {
     if (text[0].IsCloseBracketChar() && editor.CaretIndex < document.TextLength && editor.CaretIndex > 0)
     {
         if (document.GetCharAt(editor.CaretIndex) == text[0])
         {
             document.Replace(editor.CaretIndex - 1, 1, string.Empty);
         }
     }
 }
All Usage Examples Of AvalonStudio.TextEditor.Document.TextDocument::GetCharAt