Class PropertyGridAttribute
Represents a class which is used to customize the properties in PropertyGrid.
Inheritance
System.Object
System.Attribute
PropertyGridAttribute
Implements
System.Runtime.InteropServices._Attribute
Inherited Members
System.Attribute.Equals(System.Object)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetHashCode()
System.Attribute.IsDefaultAttribute()
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.Match(System.Object)
System.Attribute.System.Runtime.InteropServices._Attribute.GetIDsOfNames(System.Guid, System.IntPtr, System.UInt32, System.UInt32, System.IntPtr)
System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfo(System.UInt32, System.UInt32, System.IntPtr)
System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfoCount(System.UInt32)
System.Attribute.System.Runtime.InteropServices._Attribute.Invoke(System.UInt32, System.Guid, System.UInt32, System.Int16, System.IntPtr, System.IntPtr, System.IntPtr, System.IntPtr)
System.Attribute.TypeId
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Syncfusion.PropertyGrid.Wpf.dll
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property, AllowMultiple = true)]
public class PropertyGridAttribute : Attribute, _Attribute
Constructors
PropertyGridAttribute()
Initializes a new instance of the PropertyGridAttribute class with the NestedPropertyDisplay mode and property type.
Declaration
public PropertyGridAttribute()
Examples
Apply Show for properties of type System.DateTime.
[PropertyGridAttribue(NestedPropertyDisplayMode = NestedPropertyDisplayMode.Show, PropertyType= typeof (DateTime))]
public class Person
{
public Bank Bank { get; set; }
public DateTime DateOfBirth { get; set; }
public DateTime LastLogedIn { get; set; }
}
Properties
NestedPropertyDisplayMode
Declaration
public NestedPropertyDisplayMode NestedPropertyDisplayMode { get; set; }
Property Value
Examples
Apply Show for StartDate property.
public class Person
{
public Bank Bank { get; set; }
[PropertyGridAttribue(NestedPropertyDisplayMode = NestedPropertyDisplayMode.Show, PropertyName = "StartDate")]
or
[PropertyGridAttribue(NestedPropertyDisplayMode = NestedPropertyDisplayMode.Show)]
public DateTime StartDate { get; set; }
}
PropertyName
Declaration
public string PropertyName { get; set; }
Property Value
Examples
Apply Show for StartDate and Bank property.
[PropertyGridAttribue(NestedPropertyDisplayMode = NestedPropertyDisplayMode.Show, PropertyName = "StartDate, Bank")]
public class Person
{
public Bank Bank { get; set; }
public DateTime StartDate { get; set; }
}
PropertyType
Declaration
public Type PropertyType { get; set; }
Property Value
Examples
Apply Show for properties of type System.DateTime.
[PropertyGridAttribue(NestedPropertyDisplayMode = NestedPropertyDisplayMode.Show, PropertyType = typeof(DateTime))]
public class Person
{
public Bank Bank { get; set; }
public DateTime DateOfBirth { get; set; }
public DateTime LastLoggedIn { get; set; }
}
Implements
System.Runtime.InteropServices._Attribute