مشاركة عبر


Button.Bottom الخاصية

يحصل على المسافة، في نقاط، بين الحافة السفلية من Buttonوالحافة العليا لورقة العمل.

مساحة الاسم:  Microsoft.Office.Tools.Excel.Controls
التجميع:  Microsoft.Office.Tools.Excel.v4.0.Utilities (في Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

بناء الجملة

'إقرار
Public ReadOnly Property Bottom As Double
    Get
public double Bottom { get; }

قيمة الخاصية

النوع: System.Double
المسافة، بالنقاط، بين الحافة السفلية من Buttonو الأعلى حافة ورقة العمل.

ملاحظات

الالقيمة من القيم بالموضع هو خاصية هو تساوي جمع Topالقيمة خاصية و Heightالقيمة خاصية.

Button.Bottomتستخدم خاصية نقاط، بينما Control.Bottomتستخدم خاصية بكسل.

أمثلة

يلي تعليمات برمجية في المثال إضافة عنصر Buttonالتحكم في خلية B2 في ورقة عمل الحالي. Clickمعالج حدث من زر عرض قيم الحالي Rightو Bottomخصائص زر. عند العمود B أو الصف 2 هو مغٍِير حجمهاها في وقت التشغيل، تغيير هذه قيم وفقا لحجم العمود أو الصف الجديد.

Th هو المثال هو لتخصيص المستوى مستند.

Private Sub DisplayRightAndBottom()
    Dim PointButton As Microsoft.Office.Tools.Excel.Controls.Button = _
        Me.Controls.AddButton(Me.Range("B2", "C3"), "PointButton")
    PointButton.Text = "Click to display location"
    AddHandler PointButton.Click, AddressOf PointButton_Click
End Sub

Private Sub PointButton_Click(ByVal sender As Object, ByVal e As EventArgs)
    Dim ClickedButton As Microsoft.Office.Tools.Excel.Controls.Button = _
        CType(sender, Microsoft.Office.Tools.Excel.Controls.Button)

    MsgBox("Right is: " & ClickedButton.Right.ToString() & _
        "; Bottom is: " & ClickedButton.Bottom.ToString())
End Sub
private void DisplayRightAndBottom()
{
    Microsoft.Office.Tools.Excel.Controls.Button pointButton =
        this.Controls.AddButton(this.Range["B2", "C3"],
        "pointButton");
    pointButton.Text = "Click to display location";
    pointButton.Click += new EventHandler(pointButton_Click);
}

void pointButton_Click(object sender, EventArgs e)
{
    Microsoft.Office.Tools.Excel.Controls.Button clickedButton =
        (Microsoft.Office.Tools.Excel.Controls.Button)sender;

    MessageBox.Show("Right is: " + clickedButton.Right.ToString() +
        "; Bottom is: " + clickedButton.Bottom.ToString());
}

أمن NET Framework.

راجع أيضًَا

المرجع

Button الفئة

Button الأعضاء

Microsoft.Office.Tools.Excel.Controls مساحة الاسم