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.DesktopTextAttribute

Namespace:  TomsToolbox.Desktop
Assembly:  TomsToolbox.Desktop (in TomsToolbox.Desktop.dll) Version: 1.0.69.0
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.

[CanBeNull]

Public propertyText
Gets the text associated with this attribute.

[CanBeNull]

Protected propertyTextValue
Gets or sets the text to be returned by the Text property.

[CanBeNull]

Top
Extension Methods
  NameDescription
Public Extension MethodSafeCastT
Performs a cast from object to T, avoiding possible null violations if T is a value type.

[CanBeNull]

(Defined by ObjectExtensions.)
Top
See Also