ParameterCollectionEditor 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
연결된 데이터 원본 컨트롤의 ParameterCollection 속성으로 지정된 개체에 Parameters 대한 구성 요소 편집기를 제공합니다.
public ref class ParameterCollectionEditor : System::Drawing::Design::UITypeEditor
public class ParameterCollectionEditor : System.Drawing.Design.UITypeEditor
type ParameterCollectionEditor = class
inherit UITypeEditor
Public Class ParameterCollectionEditor
Inherits UITypeEditor
- 상속
예제
다음 코드 예제에서는 사용자 지정 컨트롤의 EditorAttribute 속성과 및 ParameterCollectionEditor (컬렉션 편집기 기본 클래스) 클래스를 UITypeEditor 연결 SelectParameters 하는 특성을 사용 하는 방법을 보여 줍니다.
private ParameterCollection selectParams;
// Associate the ParameterCollectionEditor with the SelectParameters.
[Editor(typeof(System.Web.UI.Design.WebControls.
ParameterCollectionEditor),
typeof(UITypeEditor))]
public ParameterCollection SelectParameters
{
get
{
// If there is no selectParams collection, create it.
if (selectParams == null)
selectParams = new ParameterCollection();
return selectParams;
}
set { selectParams = value; }
} // SelectParameters
Private selectParams As ParameterCollection
' Associate the ParameterCollectionEditor with the SelectParameters.
<EditorAttribute(GetType(System.Web.UI.Design.WebControls. _
ParameterCollectionEditor), _
GetType(UITypeEditor))> _
Public Property SelectParameters() As ParameterCollection
Get
If selectParams Is Nothing Then
selectParams = New ParameterCollection()
End If
Return selectParams
End Get
Set(ByVal value As ParameterCollection)
selectParams = value
End Set
End Property ' SelectParameters
설명
이 클래스는 ParameterCollectionEditor 속성 중 하나에서 지정한 대로 디자인 타임에 Parameter 개체의 요소를 편집 ParameterCollection 하기 위한 사용자 인터페이스를 Parameters 제공합니다. 속성에는 Parameters , DeleteParameters및 FilterParametersInsertParameters , 및 SelectParameters 기타 데이터 원본 컨트롤의 UpdateParametersObjectDataSource속성이 포함SqlDataSource됩니다.
비주얼 ParameterCollectionEditor 디자이너의 속성 표에 있는 속성 중 Parameters 하나에서 줄임표(...) 단추를 선택하여 호출됩니다.
메서드는 EditValueParameter 연결된 데이터 원본 제어에 ParameterCollection 대한 요소를 편집합니다. 이 메서드는 GetEditStyle 이 편집기와 연결된 편집 스타일을 가져옵니다.
생성자
| Name | Description |
|---|---|
| ParameterCollectionEditor() |
ParameterCollectionEditor 클래스의 새 인스턴스를 초기화합니다. |
속성
| Name | Description |
|---|---|
| IsDropDownResizable |
사용자가 드롭다운 편집기를 조정할 수 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 UITypeEditor) |
메서드
| Name | Description |
|---|---|
| EditValue(IServiceProvider, Object) |
메서드가 나타내는 편집기 스타일을 사용하여 지정된 개체의 값을 편집합니다 GetEditStyle() . (다음에서 상속됨 UITypeEditor) |
| EditValue(ITypeDescriptorContext, IServiceProvider, Object) |
연결된 데이터 원본 컨트롤의 ParameterCollection 개체 요소를 편집합니다. |
| Equals(Object) |
지정된 개체가 현재 개체와 같은지 여부를 확인합니다. (다음에서 상속됨 Object) |
| GetEditStyle() |
메서드에서 사용하는 편집기 EditValue(IServiceProvider, Object) 스타일을 가져옵니다. (다음에서 상속됨 UITypeEditor) |
| GetEditStyle(ITypeDescriptorContext) |
이 편집기와 연결된 편집 스타일을 가져옵니다. |
| GetHashCode() |
기본 해시 함수로 사용됩니다. (다음에서 상속됨 Object) |
| GetPaintValueSupported() |
이 편집기가 개체 값의 표현 그리기를 지원하는지 여부를 나타냅니다. (다음에서 상속됨 UITypeEditor) |
| GetPaintValueSupported(ITypeDescriptorContext) |
지정된 컨텍스트에서 지정된 컨텍스트 내에서 개체 값의 표현 그리기를 지원하는지 여부를 나타냅니다. (다음에서 상속됨 UITypeEditor) |
| GetType() |
현재 인스턴스의 Type 가져옵니다. (다음에서 상속됨 Object) |
| MemberwiseClone() |
현재 Object단순 복사본을 만듭니다. (다음에서 상속됨 Object) |
| PaintValue(Object, Graphics, Rectangle) |
지정된 개체 값의 표현을 지정된 캔버스에 그립니다. (다음에서 상속됨 UITypeEditor) |
| PaintValue(PaintValueEventArgs) |
지정된 PaintValueEventArgs개체를 사용하여 개체 값의 표현을 그립니다. (다음에서 상속됨 UITypeEditor) |
| ToString() |
현재 개체를 나타내는 문자열을 반환합니다. (다음에서 상속됨 Object) |