Spread Windows Forms 17
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / ComboDropDownInfo Class / AllowResize Property
Example


In This Topic
    AllowResize Property (ComboDropDownInfo)
    In This Topic
    Gets or sets whether the user can change the size of the drop-down window with a size grip.
    Syntax
    'Declaration
     
    
    Public Shadows Property AllowResize As Boolean
    'Usage
     
    
    Dim instance As ComboDropDownInfo
    Dim value As Boolean
     
    instance.AllowResize = value
     
    value = instance.AllowResize
    public new bool AllowResize {get; set;}

    Property Value

    A bool value, true if the drop-down window can be resized by a size grip; otherwise, false.
    Example
    次のサンプルコードは、ドロップダウンリストをサイズ変更できないようにします。
    GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType gccombo = new GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType();
    gccombo.DropDownStyle = ComboBoxStyle.DropDownList;
    gccombo.DropDown.AllowResize = false;
    gccombo.Items.AddRange(new string[] { "Feta", "Havarti", "Swiss" });
    fpSpread1.Sheets[0].Cells[1, 1].CellType = gccombo;
    Dim gccombo As New GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType()
    gccombo.DropDownStyle = ComboBoxStyle.DropDownList
    gccombo.DropDown.AllowResize = False
    gccombo.Items.AddRange(New String() {"Feta", "Havarti", "Swiss"})
    fpSpread1.Sheets(0).Cells(1, 1).CellType = gccombo
    See Also