Click or drag to resize

TextAttribute Class

Specifies a general usable attribute to associate text with an object, similar to DisplayNameAttribute or DescriptionAttribute, but without a predefined usage scope.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    TomsToolbox.EssentialsTextAttribute

Namespace:  TomsToolbox.Essentials
Assembly:  TomsToolbox.Essentials (in TomsToolbox.Essentials.dll)
Syntax
[AttributeUsageAttribute(AttributeTargets.All, AllowMultiple = true)]
public class TextAttribute : Attribute

The TextAttribute type exposes the following members.

Constructors
  NameDescription
Public methodTextAttribute(Object)
Initializes a new instance of the TextAttribute class.
Public methodTextAttribute(Object, String)
Initializes a new instance of the TextAttribute class.
Top
Properties
  NameDescription
Public propertyKey
Gets the key that classifies the usage of this text.
Public propertyText
Gets the text associated with this attribute.
Protected propertyTextValue
Gets or sets the text to be returned by the Text property.
Top
Extension Methods
See Also