Ejemplo n.º 1
0
 /// <summary>
 /// Retrieves the text of the range.
 /// </summary>
 /// <param name="maxLength">Specifies the maximum length of the string to return or -1 if no limit is requested.</param>
 /// <returns>The text of the range possibly truncated to the specified limit.</returns>
 public string GetText(int maxLength)
 {
     Misc.ValidateArgumentInRange(maxLength >= -1, "maxLength");
     return(UiaCoreApi.TextRange_GetText(_hTextRange, maxLength));
 }