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

◆ GetOptionProperty()

PropertyDescriptor System.ComponentModel.Design.DesignerOptionService.GetOptionProperty ( string pageName,
string valueName )
inlineprivate

Definition at line 375 of file DesignerOptionService.cs.

376 {
377 if (pageName == null)
378 {
379 throw new ArgumentNullException("pageName");
380 }
381 if (valueName == null)
382 {
383 throw new ArgumentNullException("valueName");
384 }
385 string[] array = pageName.Split('\\');
386 DesignerOptionCollection designerOptionCollection = Options;
387 string[] array2 = array;
388 foreach (string name in array2)
389 {
390 designerOptionCollection = designerOptionCollection[name];
391 if (designerOptionCollection == null)
392 {
393 return null;
394 }
395 }
396 return designerOptionCollection.Properties[valueName];
397 }

References System.array, System.ComponentModel.Design.DesignerOptionService.Options, and System.ComponentModel.Design.DesignerOptionService.DesignerOptionCollection.Properties.

Referenced by System.ComponentModel.Design.DesignerOptionService.GetOptionValue(), and System.ComponentModel.Design.DesignerOptionService.SetOptionValue().