HeaderPane
Main
Hide
Share Link
Print

DropDownSize Property, SftBox Class

Defines the size of the dropdown chosen by the user.

Class: SftBox
Namespace: Softelvdm.SftBoxNET
Assembly: Softelvdm.SftBoxNET

Syntax

public Size DropDownSize { get; set; }
Public Property DropDownSize As Size

Value

The size in pixels, or Size.Empty for the size defined by the SftBox.DropDownItems and SftBox.DropDownWidthMode properties.

Comments

Defines the size of the dropdown chosen by the user.

Examples

C# View entire sample code

            DumpValues("sftBox1.DropDownOpened", e);
        }

        private void sftBox1_DropDownClosed(object sender, DropDownClosedEventArgs e) {
            DumpValues("sftBox1.DropDownClosed", e);
        }

        private void sftBox1_DropDownResized(object sender, EventArgs e) {
            DumpValues("sftBox1.DropDownResized (" + sftBox1.DropDownSize.Width + " x " + sftBox1.DropDownSize.Height + ")", e);
        }

        private void sftBox1_Enter(object sender, EventArgs e) {
            DumpValues("sftBox1.Enter", e);
        }

        private void sftBox1_Leave(object sender, EventArgs e) {

VB.NET View entire sample code

        DumpValues("SftBox1.DropDownOpened", e)
    End Sub

    Private Sub SftBox1_DropDownClosed(ByVal sender As Object, ByVal e As DropDownClosedEventArgs) Handles SftBox1.DropDownClosed
        DumpValues("SftBox1.DropDownClosed", e)
    End Sub

    Private Sub SftBox1_DropDownResized(ByVal sender As Object, ByVal e As EventArgs) Handles SftBox1.DropDownResized
        DumpValues("SftBox1.DropDownResized (" & SftBox1.DropDownSize.Width & " x " & SftBox1.DropDownSize.Height & ")", e)
    End Sub

    Private Sub SftBox1_Enter(ByVal sender As Object, ByVal e As EventArgs) Handles SftBox1.Enter
        DumpValues("SftBox1.Enter", e)
    End Sub

    Private Sub SftBox1_Leave(ByVal sender As Object, ByVal e As EventArgs) Handles SftBox1.Leave

See Also SftBox Class | Classes | SftBox/NET 3.0