CaptionAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
On Reflection-based UIs, this attribute can be applied to a member to set the caption for the element.
[System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field, Inherited=false)]
public class CaptionAttribute : Attribute
type CaptionAttribute = class
inherit Attribute
- Inheritance
-
CaptionAttribute
- Attributes
Remarks
[Preserve (AllMembers=true)]
class Settings {
[Section ("Enumerations")]
[Caption ("Favorite CLR type")]
public TypeCode FavoriteType;
}
Constructors
CaptionAttribute(String) |
Fields
Caption |
Caption to display. |