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: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public class TextBlock

The TextBlock type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleTextBlock
It is applied only to creation root blocks. Not for creation of children.
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 methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows 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 methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates 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. If such already there is that rewrites him.
Public methodToString
Returns a string that represents the current text block.
(Overrides ObjectToString.)
Top
Extension Methods
See Also