HtmlImage.Border Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Görüntü için çerçevenin genişliğini alır veya ayarlar.
public:
property int Border { int get(); void set(int value); };
public int Border { get; set; }
member this.Border : int with get, set
Public Property Border As Integer
Özellik Değeri
Bir görüntü için çerçevenin genişliği (piksel cinsinden).
Örnekler
Aşağıdaki kod örneği, bir denetim için 5 piksel genişliğe sahip bir çerçeve belirtmek üzere HtmlImage özelliğinin nasıl kullanılacağını Border gösterir.
<%@ Page Language="C#" AutoEventWireup="True" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>HtmlImage Example</title>
</head>
<body>
<form id="form1" runat="server">
<h3>HtmlImage Example</h3>
<img id ="Image1"
src="Image1.jpg"
alt="Image 1"
runat="server"
style="width:500; height:226; border:5; text-align:center" />
</form>
</body>
</html>
<%@ Page Language="VB" AutoEventWireup="True" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>HtmlImage Example</title>
</head>
<body>
<form id="form1" runat="server">
<h3>HtmlImage Example</h3>
<img id ="Image1"
src="Image1.jpg"
alt="Image 1"
runat="server"
style="width:500; height:226; border:5; text-align:center" />
</form>
</body>
</html>
Açıklamalar
Görüntü için belirtilen genişliğe (piksel cinsinden) sahip bir çerçeve oluşturmak için bu özelliği kullanın.