Edytuj

Udostępnij za pośrednictwem


CaptionAttribute Class

Definition

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.

Applies to