PasswordRecovery.SuccessTextStyle Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan referensi ke kumpulan properti gaya yang menentukan tampilan teks yang ditampilkan dalam tampilan PasswordRecovery Keberhasilan kontrol.
public:
property System::Web::UI::WebControls::TableItemStyle ^ SuccessTextStyle { System::Web::UI::WebControls::TableItemStyle ^ get(); };
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public System.Web.UI.WebControls.TableItemStyle SuccessTextStyle { get; }
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
member this.SuccessTextStyle : System.Web.UI.WebControls.TableItemStyle
Public ReadOnly Property SuccessTextStyle As TableItemStyle
Nilai Properti
Referensi ke yang TableItemStyle berisi properti yang menentukan tampilan teks yang ditampilkan dalam tampilan Berhasil.
- Atribut
Contoh
Contoh kode berikut menggunakan SuccessTextStyle properti untuk mengubah tampilan SuccessText properti .
<%@ page language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>ASP.NET Example</title>
</head>
<body>
<form id="form1" runat="server">
<asp:passwordrecovery id="PasswordRecovery1" runat="server"
successtext="Your password has been sent to the email address in our files.">
<successtextstyle font-names="Arial" forecolor="Green"></successtextstyle>
</asp:passwordrecovery>
</form>
</body>
</html>
<%@ page language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>ASP.NET Example</title>
</head>
<body>
<form id="form1" runat="server">
<asp:passwordrecovery id="PasswordRecovery1" runat="server"
successtext="Your password has been sent to the email address in our files.">
<successtextstyle font-names="Arial" forecolor="Green"></successtextstyle>
</asp:passwordrecovery>
</form>
</body>
</html>
Keterangan
Properti SuccessTextStyle menentukan tampilan teks dalam tampilan PasswordRecovery Keberhasilan kontrol. Properti ini bersifat baca-saja; namun, Anda dapat mengatur properti objek yang Style dikembalikannya. Anda dapat mengatur properti ini secara deklaratif dalam formulir Property-Subproperty
, di mana Subproperty
mewakili properti Style kelas (misalnya, SuccessTextStyle-ForeColor
). Anda juga dapat mengatur properti secara terprogram dalam formulir Property.Subproperty
(misalnya, SuccessTextStyle.ForeColor
).
Pengaturan umum mencakup warna latar belakang kustom, warna teks, dan properti font.
Pengaturan gaya untuk SuccessTextStyle properti digabungkan dengan pengaturan gaya untuk PasswordRecovery kontrol. Pengaturan apa pun yang SuccessTextStyle dibuat di properti akan mengambil alih pengaturan terkait di properti PasswordRecovery kontrol.
Properti berikut PasswordRecovery ini ditimpa oleh SuccessTextStyle pengaturan:
Saat Anda menggunakan templat untuk menentukan tampilan Tampilan PasswordRecovery keberhasilan kontrol, SuccessTextStyle properti tidak berpengaruh.
Berlaku untuk
Lihat juga
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk