C# 클래스 Fizzler.Systems.WinForms.ControlExtensions

Extension methods for Control.
파일 보기 프로젝트 열기: atifaziz/Fizzler

공개 메소드들

메소드 설명
ControlsAfterSelf ( this control ) : IEnumerable

Returns a collection of all controls that precede this control in children of its parent.

ControlsBeforeSelf ( this control ) : IEnumerable

Returns a collection of all controls that succeed this control in children of its parent.

Descendants ( this control ) : IEnumerable

Returns a collection of all controls that are the children and grandchildren of this control.

FindPropertyValue ( this control, string name ) : object

Attemps to locate a property on the object and returns its value. If the property does not exist then a null reference is returned.

FindPropertyValue ( this control, string name, object defaultValue ) : object

Attemps to locate a property on the object and returns its value. If the property does not exist then the value specified in defaultValue is returned instead.

Properties ( this control ) : PropertyDescriptorCollection

Returns a collection of all properties on the control.

비공개 메소드들

메소드 설명
DescendantsImpl ( Control control ) : IEnumerable
FindPropertyValueString ( this control, string name ) : string

Attemps to locate a property on the object and returns a string representation of its value. If the property does not exist then an empty string is returned but never a null reference.

메소드 상세

ControlsAfterSelf() 공개 정적인 메소드

Returns a collection of all controls that precede this control in children of its parent.
public static ControlsAfterSelf ( this control ) : IEnumerable
control this
리턴 IEnumerable

ControlsBeforeSelf() 공개 정적인 메소드

Returns a collection of all controls that succeed this control in children of its parent.
public static ControlsBeforeSelf ( this control ) : IEnumerable
control this
리턴 IEnumerable

Descendants() 공개 정적인 메소드

Returns a collection of all controls that are the children and grandchildren of this control.
public static Descendants ( this control ) : IEnumerable
control this
리턴 IEnumerable

FindPropertyValue() 공개 정적인 메소드

Attemps to locate a property on the object and returns its value. If the property does not exist then a null reference is returned.
public static FindPropertyValue ( this control, string name ) : object
control this
name string
리턴 object

FindPropertyValue() 공개 정적인 메소드

Attemps to locate a property on the object and returns its value. If the property does not exist then the value specified in defaultValue is returned instead.
public static FindPropertyValue ( this control, string name, object defaultValue ) : object
control this
name string
defaultValue object
리턴 object

Properties() 공개 정적인 메소드

Returns a collection of all properties on the control.
public static Properties ( this control ) : PropertyDescriptorCollection
control this
리턴 System.ComponentModel.PropertyDescriptorCollection