Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetLocalizedString()

virtual ? string System.ComponentModel.CategoryAttribute.GetLocalizedString ( string value)
inlineprotectedvirtual

Definition at line 114 of file CategoryAttribute.cs.

115 {
116 return value switch
117 {
118 "Action" => System.SR.PropertyCategoryAction,
119 "Appearance" => System.SR.PropertyCategoryAppearance,
120 "Asynchronous" => System.SR.PropertyCategoryAsynchronous,
121 "Behavior" => System.SR.PropertyCategoryBehavior,
122 "Config" => System.SR.PropertyCategoryConfig,
123 "Data" => System.SR.PropertyCategoryData,
124 "DDE" => System.SR.PropertyCategoryDDE,
125 "Default" => System.SR.PropertyCategoryDefault,
126 "Design" => System.SR.PropertyCategoryDesign,
127 "DragDrop" => System.SR.PropertyCategoryDragDrop,
128 "Focus" => System.SR.PropertyCategoryFocus,
129 "Font" => System.SR.PropertyCategoryFont,
130 "Format" => System.SR.PropertyCategoryFormat,
131 "Key" => System.SR.PropertyCategoryKey,
132 "Layout" => System.SR.PropertyCategoryLayout,
133 "List" => System.SR.PropertyCategoryList,
134 "Mouse" => System.SR.PropertyCategoryMouse,
135 "Position" => System.SR.PropertyCategoryPosition,
136 "Scale" => System.SR.PropertyCategoryScale,
137 "Text" => System.SR.PropertyCategoryText,
138 "WindowStyle" => System.SR.PropertyCategoryWindowStyle,
139 _ => null,
140 };
141 }
static string PropertyCategoryScale
Definition SR.cs:52
static string PropertyCategoryConfig
Definition SR.cs:24
static string PropertyCategoryLayout
Definition SR.cs:44
static string PropertyCategoryFormat
Definition SR.cs:40
static string PropertyCategoryDDE
Definition SR.cs:28
static string PropertyCategoryWindowStyle
Definition SR.cs:56
static string PropertyCategoryData
Definition SR.cs:26
static string PropertyCategoryDefault
Definition SR.cs:30
static string PropertyCategoryAppearance
Definition SR.cs:18
static string PropertyCategoryKey
Definition SR.cs:42
static string PropertyCategoryFocus
Definition SR.cs:36
static string PropertyCategoryAction
Definition SR.cs:16
static string PropertyCategoryList
Definition SR.cs:46
static string PropertyCategoryBehavior
Definition SR.cs:22
static string PropertyCategoryDragDrop
Definition SR.cs:34
static string PropertyCategoryFont
Definition SR.cs:38
static string PropertyCategoryDesign
Definition SR.cs:32
static string PropertyCategoryAsynchronous
Definition SR.cs:20
static string PropertyCategoryPosition
Definition SR.cs:50
static string PropertyCategoryText
Definition SR.cs:54
static string PropertyCategoryMouse
Definition SR.cs:48
Definition SR.cs:7

References System.SR.PropertyCategoryAction, System.SR.PropertyCategoryAppearance, System.SR.PropertyCategoryAsynchronous, System.SR.PropertyCategoryBehavior, System.SR.PropertyCategoryConfig, System.SR.PropertyCategoryData, System.SR.PropertyCategoryDDE, System.SR.PropertyCategoryDefault, System.SR.PropertyCategoryDesign, System.SR.PropertyCategoryDragDrop, System.SR.PropertyCategoryFocus, System.SR.PropertyCategoryFont, System.SR.PropertyCategoryFormat, System.SR.PropertyCategoryKey, System.SR.PropertyCategoryLayout, System.SR.PropertyCategoryList, System.SR.PropertyCategoryMouse, System.SR.PropertyCategoryPosition, System.SR.PropertyCategoryScale, System.SR.PropertyCategoryText, System.SR.PropertyCategoryWindowStyle, and System.value.