خصائص BorderColor لـ ASP.NET

التعريف والاستخدام

يستخدم ميزة BorderColor لضبط أو إرجاع لون حافة العنصر.

القواعد

<asp:webcontrol id="id" BorderColor="color" runat="server" />
الخصائص الوصف
color تم تعيينها كألوان حواف العنصر. يجب أن تكون صالحة ألوان HTML

مثال

في المثال التالي تم ضبط لون حافة الجدول:

<form runat="server">
<asp:Table runat="server" BorderColor="#FF0000" 
BorderWidth="5" GridLines="vertical">
  <asp:TableRow>
    <asp:TableCell>Hello</asp:TableCell>
    <asp:TableCell>World</asp:TableCell>
  </asp:TableRow>
</asp:Table>
</form>

مثال

ضبط لون حافة Table Control
ضبط لون حافة Table Control (باستخدام التصريح والسكربت)