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) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
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
 NameDescription
Public Extension MethodSafeCastT Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions)
Top
See Also