using System; namespace System.ComponentModel { /// Specifies the name of the category in which to group the property or event when displayed in a control set to Categorized mode. // Token: 0x0200005F RID: 95 [AttributeUsage(AttributeTargets.All)] public class CategoryAttribute : Attribute { /// Initializes a new instance of the class using the category name Default. // Token: 0x0600039C RID: 924 RVA: 0x0000AE3C File Offset: 0x0000903C public CategoryAttribute() { this.category = "Misc"; } /// Initializes a new instance of the class using the specified category name. /// The name of the category. // Token: 0x0600039D RID: 925 RVA: 0x0000AE50 File Offset: 0x00009050 public CategoryAttribute(string category) { this.category = category; } /// Gets a representing the Action category. /// A for the action category. // Token: 0x170000F7 RID: 247 // (get) Token: 0x0600039F RID: 927 RVA: 0x0000AE6C File Offset: 0x0000906C public static CategoryAttribute Action { get { if (CategoryAttribute.action != null) { return CategoryAttribute.action; } object obj = CategoryAttribute.lockobj; lock (obj) { if (CategoryAttribute.action == null) { CategoryAttribute.action = new CategoryAttribute("Action"); } } return CategoryAttribute.action; } } /// Gets a representing the Appearance category. /// A for the appearance category. // Token: 0x170000F8 RID: 248 // (get) Token: 0x060003A0 RID: 928 RVA: 0x0000AEE8 File Offset: 0x000090E8 public static CategoryAttribute Appearance { get { if (CategoryAttribute.appearance != null) { return CategoryAttribute.appearance; } object obj = CategoryAttribute.lockobj; lock (obj) { if (CategoryAttribute.appearance == null) { CategoryAttribute.appearance = new CategoryAttribute("Appearance"); } } return CategoryAttribute.appearance; } } /// Gets a representing the Asynchronous category. /// A for the asynchronous category. // Token: 0x170000F9 RID: 249 // (get) Token: 0x060003A1 RID: 929 RVA: 0x0000AF64 File Offset: 0x00009164 public static CategoryAttribute Asynchronous { get { if (CategoryAttribute.behaviour != null) { return CategoryAttribute.behaviour; } object obj = CategoryAttribute.lockobj; lock (obj) { if (CategoryAttribute.async == null) { CategoryAttribute.async = new CategoryAttribute("Asynchronous"); } } return CategoryAttribute.async; } } /// Gets a representing the Behavior category. /// A for the behavior category. // Token: 0x170000FA RID: 250 // (get) Token: 0x060003A2 RID: 930 RVA: 0x0000AFE0 File Offset: 0x000091E0 public static CategoryAttribute Behavior { get { if (CategoryAttribute.behaviour != null) { return CategoryAttribute.behaviour; } object obj = CategoryAttribute.lockobj; lock (obj) { if (CategoryAttribute.behaviour == null) { CategoryAttribute.behaviour = new CategoryAttribute("Behavior"); } } return CategoryAttribute.behaviour; } } /// Gets a representing the Data category. /// A for the data category. // Token: 0x170000FB RID: 251 // (get) Token: 0x060003A3 RID: 931 RVA: 0x0000B05C File Offset: 0x0000925C public static CategoryAttribute Data { get { if (CategoryAttribute.data != null) { return CategoryAttribute.data; } object obj = CategoryAttribute.lockobj; lock (obj) { if (CategoryAttribute.data == null) { CategoryAttribute.data = new CategoryAttribute("Data"); } } return CategoryAttribute.data; } } /// Gets a representing the Default category. /// A for the default category. // Token: 0x170000FC RID: 252 // (get) Token: 0x060003A4 RID: 932 RVA: 0x0000B0D8 File Offset: 0x000092D8 public static CategoryAttribute Default { get { if (CategoryAttribute.def != null) { return CategoryAttribute.def; } object obj = CategoryAttribute.lockobj; lock (obj) { if (CategoryAttribute.def == null) { CategoryAttribute.def = new CategoryAttribute("Default"); } } return CategoryAttribute.def; } } /// Gets a representing the Design category. /// A for the design category. // Token: 0x170000FD RID: 253 // (get) Token: 0x060003A5 RID: 933 RVA: 0x0000B154 File Offset: 0x00009354 public static CategoryAttribute Design { get { if (CategoryAttribute.design != null) { return CategoryAttribute.design; } object obj = CategoryAttribute.lockobj; lock (obj) { if (CategoryAttribute.design == null) { CategoryAttribute.design = new CategoryAttribute("Design"); } } return CategoryAttribute.design; } } /// Gets a representing the DragDrop category. /// A for the drag-and-drop category. // Token: 0x170000FE RID: 254 // (get) Token: 0x060003A6 RID: 934 RVA: 0x0000B1D0 File Offset: 0x000093D0 public static CategoryAttribute DragDrop { get { if (CategoryAttribute.drag_drop != null) { return CategoryAttribute.drag_drop; } object obj = CategoryAttribute.lockobj; lock (obj) { if (CategoryAttribute.drag_drop == null) { CategoryAttribute.drag_drop = new CategoryAttribute("DragDrop"); } } return CategoryAttribute.drag_drop; } } /// Gets a representing the Focus category. /// A for the focus category. // Token: 0x170000FF RID: 255 // (get) Token: 0x060003A7 RID: 935 RVA: 0x0000B24C File Offset: 0x0000944C public static CategoryAttribute Focus { get { if (CategoryAttribute.focus != null) { return CategoryAttribute.focus; } object obj = CategoryAttribute.lockobj; lock (obj) { if (CategoryAttribute.focus == null) { CategoryAttribute.focus = new CategoryAttribute("Focus"); } } return CategoryAttribute.focus; } } /// Gets a representing the Format category. /// A for the format category. // Token: 0x17000100 RID: 256 // (get) Token: 0x060003A8 RID: 936 RVA: 0x0000B2C8 File Offset: 0x000094C8 public static CategoryAttribute Format { get { if (CategoryAttribute.format != null) { return CategoryAttribute.format; } object obj = CategoryAttribute.lockobj; lock (obj) { if (CategoryAttribute.format == null) { CategoryAttribute.format = new CategoryAttribute("Format"); } } return CategoryAttribute.format; } } /// Gets a representing the Key category. /// A for the key category. // Token: 0x17000101 RID: 257 // (get) Token: 0x060003A9 RID: 937 RVA: 0x0000B344 File Offset: 0x00009544 public static CategoryAttribute Key { get { if (CategoryAttribute.key != null) { return CategoryAttribute.key; } object obj = CategoryAttribute.lockobj; lock (obj) { if (CategoryAttribute.key == null) { CategoryAttribute.key = new CategoryAttribute("Key"); } } return CategoryAttribute.key; } } /// Gets a representing the Layout category. /// A for the layout category. // Token: 0x17000102 RID: 258 // (get) Token: 0x060003AA RID: 938 RVA: 0x0000B3C0 File Offset: 0x000095C0 public static CategoryAttribute Layout { get { if (CategoryAttribute.layout != null) { return CategoryAttribute.layout; } object obj = CategoryAttribute.lockobj; lock (obj) { if (CategoryAttribute.layout == null) { CategoryAttribute.layout = new CategoryAttribute("Layout"); } } return CategoryAttribute.layout; } } /// Gets a representing the Mouse category. /// A for the mouse category. // Token: 0x17000103 RID: 259 // (get) Token: 0x060003AB RID: 939 RVA: 0x0000B43C File Offset: 0x0000963C public static CategoryAttribute Mouse { get { if (CategoryAttribute.mouse != null) { return CategoryAttribute.mouse; } object obj = CategoryAttribute.lockobj; lock (obj) { if (CategoryAttribute.mouse == null) { CategoryAttribute.mouse = new CategoryAttribute("Mouse"); } } return CategoryAttribute.mouse; } } /// Gets a representing the WindowStyle category. /// A for the window style category. // Token: 0x17000104 RID: 260 // (get) Token: 0x060003AC RID: 940 RVA: 0x0000B4B8 File Offset: 0x000096B8 public static CategoryAttribute WindowStyle { get { if (CategoryAttribute.window_style != null) { return CategoryAttribute.window_style; } object obj = CategoryAttribute.lockobj; lock (obj) { if (CategoryAttribute.window_style == null) { CategoryAttribute.window_style = new CategoryAttribute("WindowStyle"); } } return CategoryAttribute.window_style; } } /// Looks up the localized name of the specified category. /// The localized name of the category, or null if a localized name does not exist. /// The identifer for the category to look up. // Token: 0x060003AD RID: 941 RVA: 0x0000B534 File Offset: 0x00009734 protected virtual string GetLocalizedString(string value) { return global::Locale.GetText(value); } /// Gets the name of the category for the property or event that this attribute is applied to. /// The name of the category for the property or event that this attribute is applied to. // Token: 0x17000105 RID: 261 // (get) Token: 0x060003AE RID: 942 RVA: 0x0000B53C File Offset: 0x0000973C public string Category { get { if (!this.IsLocalized) { this.IsLocalized = true; string localizedString = this.GetLocalizedString(this.category); if (localizedString != null) { this.category = localizedString; } } return this.category; } } /// Returns whether the value of the given object is equal to the current .. /// true if the value of the given object is equal to that of the current; otherwise, false. /// The object to test the value equality of. // Token: 0x060003AF RID: 943 RVA: 0x0000B57C File Offset: 0x0000977C public override bool Equals(object obj) { return obj is CategoryAttribute && (obj == this || ((CategoryAttribute)obj).Category == this.category); } /// Returns the hash code for this attribute. /// A 32-bit signed integer hash code. /// /// /// // Token: 0x060003B0 RID: 944 RVA: 0x0000B5B8 File Offset: 0x000097B8 public override int GetHashCode() { return this.category.GetHashCode(); } /// Determines if this attribute is the default. /// true if the attribute is the default value for this attribute class; otherwise, false. /// /// /// // Token: 0x060003B1 RID: 945 RVA: 0x0000B5C8 File Offset: 0x000097C8 public override bool IsDefaultAttribute() { return this.category == CategoryAttribute.Default.Category; } // Token: 0x0400012B RID: 299 private string category; // Token: 0x0400012C RID: 300 private bool IsLocalized; // Token: 0x0400012D RID: 301 private static volatile CategoryAttribute action; // Token: 0x0400012E RID: 302 private static volatile CategoryAttribute appearance; // Token: 0x0400012F RID: 303 private static volatile CategoryAttribute behaviour; // Token: 0x04000130 RID: 304 private static volatile CategoryAttribute data; // Token: 0x04000131 RID: 305 private static volatile CategoryAttribute def; // Token: 0x04000132 RID: 306 private static volatile CategoryAttribute design; // Token: 0x04000133 RID: 307 private static volatile CategoryAttribute drag_drop; // Token: 0x04000134 RID: 308 private static volatile CategoryAttribute focus; // Token: 0x04000135 RID: 309 private static volatile CategoryAttribute format; // Token: 0x04000136 RID: 310 private static volatile CategoryAttribute key; // Token: 0x04000137 RID: 311 private static volatile CategoryAttribute layout; // Token: 0x04000138 RID: 312 private static volatile CategoryAttribute mouse; // Token: 0x04000139 RID: 313 private static volatile CategoryAttribute window_style; // Token: 0x0400013A RID: 314 private static volatile CategoryAttribute async; // Token: 0x0400013B RID: 315 private static object lockobj = new object(); } }