GrapeCity.Win.Editors.v80 アセンブリ > GrapeCity.Win.Editors 名前空間 > GcTextBox クラス : DropDownEditor プロパティ |
Public ReadOnly Property DropDownEditor As DropDownEditor
public DropDownEditor DropDownEditor {get;}
DropDownEditor オブジェクトでは、 ドロップダウンエディットウィンドウの表示設定および操作を行います。
ドロップダウンエディットウィンドウの動作設定は、 DropDown プロパティによって行います。
// Please use the following namespace // using System.Drawing; // using System.Windows.Forms; // using GrapeCity.Win.Editors; public void InitializeDropDownEditor() { // Create an instance of a GcTextBox control. GcTextBox gcTextBox1 = new GcTextBox(); // Set the BorderStyle property of DropDownEditor to BorderStyle.Fixed3D. gcTextBox1.DropDownEditor.BorderStyle = BorderStyle.Fixed3D; // Set the ContentAlignment property of DropDownEditor to ContentAlignment.TopRight. gcTextBox1.DropDownEditor.ContentAlignment = ContentAlignment.TopRight; // Set the ScrollBarMode property of DropDownEditor to ScrollBarMode.Automatic. // The scrollbar will shown automaticly if necessary. gcTextBox1.DropDownEditor.ScrollBarMode = ScrollBarMode.Automatic; }
' Please use the following namespace ' Imports System.Drawing ' Imports System.Windows.Forms ' Imports GrapeCity.Win.Editors Public Sub InitializeDropDownEditor() ' Create an instance of a GcTextBox control. Dim gcTextBox1 As New GcTextBox() ' Set the BorderStyle property of DropDownEditor to BorderStyle.Fixed3D. gcTextBox1.DropDownEditor.BorderStyle = BorderStyle.Fixed3D ' Set the ContentAlignment property of DropDownEditor to ContentAlignment.TopRight. gcTextBox1.DropDownEditor.ContentAlignment = ContentAlignment.TopRight ' Set the ScrollBarMode property of DropDownEditor to ScrollBarMode.Automatic. ' The scrollbar will shown automaticly if necessary. gcTextBox1.DropDownEditor.ScrollBarMode = ScrollBarMode.Automatic End Sub