Click or drag to resize

TextBlock Class

The class that allows to store the text information in the hierarchical form. Supports creation of children and attributes.
Inheritance Hierarchy
SystemObject
  NeoAxisTextBlock

Namespace: NeoAxis
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public class TextBlock

The TextBlock type exposes the following members.

Constructors
 NameDescription
Public methodCode exampleTextBlock Create a root block.
Public methodTextBlock(String, String) Create a root block.
Top
Properties
 NameDescription
Public propertyAttributes Gets the attributes collection.
Public propertyChildren Gets the children collection.
Public propertyData Gets or set block string data.
Public propertyName Gets or set block name.
Public propertyParent Gets the parent block.
Top
Methods
 NameDescription
Public methodAddChild(TextBlock) Adds an already created child block.
Public methodAddChild(String, String) Creates the child block.
Public methodAttributeExists Checks existence of attribute.
Public methodDeleteAllAttributes Deletes all attributes.
Public methodDeleteAttribute Deletes attribute if he exists.
Public methodDeleteChild Deletes child block.
Public methodCode exampleDumpToString Returns a string containing all data about the block and his children.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodFindChild Finds child block by name.
Public methodGetAttribute Returns the attribute value by name.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberCode exampleParse Parses the text with data of the block and his children.
Public methodSetAttribute Sets attribute. Replaces previous when already exists with the same name.
Public methodToString Returns a string that represents the current text block.
(Overrides ObjectToString)
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also