Class TypeVisualizerAttribute
- Namespace
- Bonsai
- Assembly
- Bonsai.Core.dll
Determines the type of visualizer used to display the target of the attribute.
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = true)]
public sealed class TypeVisualizerAttribute : Attribute, _Attribute
- Inheritance
-
TypeVisualizerAttribute
- Implements
- Inherited Members
Constructors
TypeVisualizerAttribute(string)
Initializes a new instance of the TypeVisualizerAttribute class with the specified visualizer type name.
public TypeVisualizerAttribute(string visualizerTypeName)
Parameters
visualizerTypeName
stringA string specifying the assembly qualified name of a visualizer that can be used to display the type this attribute is bound to.
TypeVisualizerAttribute(Type)
Initializes a new instance of the TypeVisualizerAttribute class with the specified visualizer type.
public TypeVisualizerAttribute(Type visualizer)
Parameters
visualizer
TypeThe Type of a visualizer that can be used to display the type this attribute is bound to.
Properties
Target
Gets or sets the type that is the target of the attribute.
public Type Target { get; set; }
Property Value
TargetTypeName
Gets or sets the assembly qualified name of the type that is the target of the attribute.
public string TargetTypeName { get; set; }
Property Value
VisualizerTypeName
Gets the assembly qualified name of the visualizer class.
public string VisualizerTypeName { get; }