Files
Dec2017-Script-Dump/System/ComponentModel/CategoryAttribute.cs
T
2026-06-04 11:42:34 +02:00

474 lines
15 KiB
C#

using System;
namespace System.ComponentModel
{
/// <summary>Specifies the name of the category in which to group the property or event when displayed in a <see cref="T:System.Windows.Forms.PropertyGrid" /> control set to Categorized mode.</summary>
// Token: 0x0200005F RID: 95
[AttributeUsage(AttributeTargets.All)]
public class CategoryAttribute : Attribute
{
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.CategoryAttribute" /> class using the category name Default.</summary>
// Token: 0x0600039C RID: 924 RVA: 0x0000AE3C File Offset: 0x0000903C
public CategoryAttribute()
{
this.category = "Misc";
}
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.CategoryAttribute" /> class using the specified category name.</summary>
/// <param name="category">The name of the category. </param>
// Token: 0x0600039D RID: 925 RVA: 0x0000AE50 File Offset: 0x00009050
public CategoryAttribute(string category)
{
this.category = category;
}
/// <summary>Gets a <see cref="T:System.ComponentModel.CategoryAttribute" /> representing the Action category.</summary>
/// <returns>A <see cref="T:System.ComponentModel.CategoryAttribute" /> for the action category.</returns>
// 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;
}
}
/// <summary>Gets a <see cref="T:System.ComponentModel.CategoryAttribute" /> representing the Appearance category.</summary>
/// <returns>A <see cref="T:System.ComponentModel.CategoryAttribute" /> for the appearance category.</returns>
// 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;
}
}
/// <summary>Gets a <see cref="T:System.ComponentModel.CategoryAttribute" /> representing the Asynchronous category.</summary>
/// <returns>A <see cref="T:System.ComponentModel.CategoryAttribute" /> for the asynchronous category.</returns>
// 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;
}
}
/// <summary>Gets a <see cref="T:System.ComponentModel.CategoryAttribute" /> representing the Behavior category.</summary>
/// <returns>A <see cref="T:System.ComponentModel.CategoryAttribute" /> for the behavior category.</returns>
// 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;
}
}
/// <summary>Gets a <see cref="T:System.ComponentModel.CategoryAttribute" /> representing the Data category.</summary>
/// <returns>A <see cref="T:System.ComponentModel.CategoryAttribute" /> for the data category.</returns>
// 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;
}
}
/// <summary>Gets a <see cref="T:System.ComponentModel.CategoryAttribute" /> representing the Default category.</summary>
/// <returns>A <see cref="T:System.ComponentModel.CategoryAttribute" /> for the default category.</returns>
// 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;
}
}
/// <summary>Gets a <see cref="T:System.ComponentModel.CategoryAttribute" /> representing the Design category.</summary>
/// <returns>A <see cref="T:System.ComponentModel.CategoryAttribute" /> for the design category.</returns>
// 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;
}
}
/// <summary>Gets a <see cref="T:System.ComponentModel.CategoryAttribute" /> representing the DragDrop category.</summary>
/// <returns>A <see cref="T:System.ComponentModel.CategoryAttribute" /> for the drag-and-drop category.</returns>
// 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;
}
}
/// <summary>Gets a <see cref="T:System.ComponentModel.CategoryAttribute" /> representing the Focus category.</summary>
/// <returns>A <see cref="T:System.ComponentModel.CategoryAttribute" /> for the focus category.</returns>
// 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;
}
}
/// <summary>Gets a <see cref="T:System.ComponentModel.CategoryAttribute" /> representing the Format category.</summary>
/// <returns>A <see cref="T:System.ComponentModel.CategoryAttribute" /> for the format category.</returns>
// 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;
}
}
/// <summary>Gets a <see cref="T:System.ComponentModel.CategoryAttribute" /> representing the Key category.</summary>
/// <returns>A <see cref="T:System.ComponentModel.CategoryAttribute" /> for the key category.</returns>
// 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;
}
}
/// <summary>Gets a <see cref="T:System.ComponentModel.CategoryAttribute" /> representing the Layout category.</summary>
/// <returns>A <see cref="T:System.ComponentModel.CategoryAttribute" /> for the layout category.</returns>
// 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;
}
}
/// <summary>Gets a <see cref="T:System.ComponentModel.CategoryAttribute" /> representing the Mouse category.</summary>
/// <returns>A <see cref="T:System.ComponentModel.CategoryAttribute" /> for the mouse category.</returns>
// 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;
}
}
/// <summary>Gets a <see cref="T:System.ComponentModel.CategoryAttribute" /> representing the WindowStyle category.</summary>
/// <returns>A <see cref="T:System.ComponentModel.CategoryAttribute" /> for the window style category.</returns>
// 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;
}
}
/// <summary>Looks up the localized name of the specified category.</summary>
/// <returns>The localized name of the category, or null if a localized name does not exist.</returns>
/// <param name="value">The identifer for the category to look up. </param>
// Token: 0x060003AD RID: 941 RVA: 0x0000B534 File Offset: 0x00009734
protected virtual string GetLocalizedString(string value)
{
return global::Locale.GetText(value);
}
/// <summary>Gets the name of the category for the property or event that this attribute is applied to.</summary>
/// <returns>The name of the category for the property or event that this attribute is applied to.</returns>
// 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;
}
}
/// <summary>Returns whether the value of the given object is equal to the current <see cref="T:System.ComponentModel.CategoryAttribute" />..</summary>
/// <returns>true if the value of the given object is equal to that of the current; otherwise, false.</returns>
/// <param name="obj">The object to test the value equality of. </param>
// 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);
}
/// <summary>Returns the hash code for this attribute.</summary>
/// <returns>A 32-bit signed integer hash code.</returns>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
/// </PermissionSet>
// Token: 0x060003B0 RID: 944 RVA: 0x0000B5B8 File Offset: 0x000097B8
public override int GetHashCode()
{
return this.category.GetHashCode();
}
/// <summary>Determines if this attribute is the default.</summary>
/// <returns>true if the attribute is the default value for this attribute class; otherwise, false.</returns>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
/// </PermissionSet>
// 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();
}
}