C# 클래스 System.ComponentModel.Design.DesignerOptionService

상속: IDesignerOptionService
파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

보호된 메소드들

메소드 설명
CreateOptionCollection ( DesignerOptionCollection parent, string name, object value ) : DesignerOptionCollection

Creates a new DesignerOptionCollection with the given name, and adds it to the given parent. The "value" parameter specifies an object whose public properties will be used in the Propeties collection of the option collection. The value parameter can be null if this options collection does not offer any properties. Properties will be wrapped in such a way that passing anything into the component parameter of the property descriptor will be ignored and the value object will be substituted.

PopulateOptionCollection ( DesignerOptionCollection options ) : void

This method is called on demand the first time a user asks for child options or properties of an options collection.

ShowDialog ( DesignerOptionCollection options, object optionObject ) : bool

This method must be implemented to show the options dialog UI for the given object.

비공개 메소드들

메소드 설명
GetOptionProperty ( string pageName, string valueName ) : PropertyDescriptor

Retrieves the property descriptor for the given page / value name. Returns null if the property couldn't be found.

IDesignerOptionService ( string pageName, string valueName ) : object

Gets the value of an option defined in this package.

IDesignerOptionService ( string pageName, string valueName, object value ) : void

Sets the value of an option defined in this package.

메소드 상세

CreateOptionCollection() 보호된 메소드

Creates a new DesignerOptionCollection with the given name, and adds it to the given parent. The "value" parameter specifies an object whose public properties will be used in the Propeties collection of the option collection. The value parameter can be null if this options collection does not offer any properties. Properties will be wrapped in such a way that passing anything into the component parameter of the property descriptor will be ignored and the value object will be substituted.
protected CreateOptionCollection ( DesignerOptionCollection parent, string name, object value ) : DesignerOptionCollection
parent DesignerOptionCollection
name string
value object
리턴 DesignerOptionCollection

PopulateOptionCollection() 보호된 메소드

This method is called on demand the first time a user asks for child options or properties of an options collection.
protected PopulateOptionCollection ( DesignerOptionCollection options ) : void
options DesignerOptionCollection
리턴 void

ShowDialog() 보호된 메소드

This method must be implemented to show the options dialog UI for the given object.
protected ShowDialog ( DesignerOptionCollection options, object optionObject ) : bool
options DesignerOptionCollection
optionObject object
리턴 bool