/// <summary> /// Overridden <see cref="Object.ToString()"/> method. /// Returns the <see cref="VGCursor"/> properties as a human readable string. /// </summary> /// <returns>A <see cref="string"/> that represents the current <see cref="VGCursor"/>.</returns> public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("VGCursor, Type: "); sb.Append(this.cursorType.ToString()); sb.Append(" ; Pen: "); sb.Append(ObjectStringConverter.PenToString(Pen)); sb.Append(" ; Group: "); sb.Append(StyleGroup.ToString()); sb.Append(" ; Bounds: "); sb.Append(Bounds.ToString()); return(sb.ToString()); }
/// <summary> /// Overridden <see cref="Object.ToString()"/> method. /// Returns the <see cref="VGText"/> properties as a human readable string. /// </summary> /// <returns>A <see cref="string"/> that represents this <see cref="VGText"/>.</returns> public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("VGRichText, Name: "); sb.Append(Name); sb.Append(" ; '"); sb.Append(this.richTextBox.Text); sb.Append(" ; Pen: "); sb.Append(ObjectStringConverter.PenToString(Pen)); sb.Append(" ; Group: "); sb.Append(StyleGroup.ToString()); sb.Append(" ; Bounds: "); sb.Append(Bounds.ToString()); return(sb.ToString()); }