IIndentableText interface
Namespace: NextDesign.Desktop
Description
A text sequence object.
All methods defined in this interface return the instance itself on which the method is called.
This allows you to chain method calls to form sequences.
Area you belong to
Name | Description |
---|---|
Utility | A group of general-purpose APIs. |
Method
Name | Description |
---|---|
AppendLine(string,object[]) | The specified string, and a newline at the end of this sequence Add to. |
AppendLine(string) | Appends the specified string, and a newline, to the end of this sequence. |
AppendLine1 | Appends the specified string and a newline to the end of this sequence. |
AppendLine2 | Appends the specified string and a newline to the end of this sequence. |
AppendLine3 | Appends the specified string and a newline to the end of this sequence. |
AppendLine4 | Appends the specified string and a newline to the end of this sequence. |
AppendLine5 | Appends the specified string and a newline to the end of this sequence. |
Indent | Increase the indent level. This method makes no changes to the text sequence, only increases the indentation level. If you increase the indentation level using this method, an indented string equal to the number of indentation levels will be automatically added to the beginning of the line when you call the AppendLine method. |
Outdent | Decrease the indent level. This method makes no changes to the text sequence, only reduces the indentation level. If you reduce the indentation level using this method, the indented string will be removed by one level when you call the AppendLine method. |
Annotation
Example)
var text = {create IIndetableText instance...};
text.AppendLine("{"}.Indent().AppnedLine("first line text.").AppendLine("second line text.").Outdent().AppnedLine("}").ToString();