Notification.Text プロパティ
アセンブリ: Microsoft.WindowsCE.Forms (microsoft.windowsce.forms.dll 内)

HTML またはプレーンテキストが含まれた文字列。既定値は空の文字列 ("") です。


Text プロパティの値に StringBuilder を使用して、HTML 文字列を作成するコード例を次に示します。このコード例は、Notification クラスのトピックで取り上げているコード例の一部分です。
' Create the text for the notification. ' Use a StringBuilder for better performance. Dim HTMLString As New StringBuilder() HTMLString.Append("<html><body>") HTMLString.Append("<font color=""#0000FF""><b>Data ready to download</b></font>") HTMLString.Append(" <a href=""settings"">Settings</a>") HTMLString.Append("<br><form method=""GET"" action=notify>") HTMLString.Append("<SELECT NAME=""lstbx"">") HTMLString.Append("<OPTION VALUE=""0"">Start now</OPTION><OPTION VALUE=""1"">In 1 hr</OPTION>") HTMLString.Append("<OPTION VALUE=""2"">In 2 hrs</OPTION><OPTION VALUE=""3"">In 3 hrs</OPTION>") HTMLString.Append("<OPTION VALUE=""4"">In 4 hrs</OPTION></SELECT>") HTMLString.Append("<input type=checkbox name=chkbx>Notify completion") HTMLString.Append("<br><input type='submit'>") HTMLString.Append("<input type=button name='cmd:2' value='Postpone'>") HTMLString.Append("</body></html>") ' Set the Text property to the HTML string. Notification1.Text = HTMLString.ToString()
// Create the text for the notification. // Use a StringBuilder for better performance. StringBuilder HTMLString = new StringBuilder(); HTMLString.Append("<html><body>"); HTMLString.Append("<font color=\"#0000FF\"><b>Data ready to download</b></font>"); HTMLString.Append(" <a href=\"settings\">Settings</a>"); HTMLString.Append("<br><form method=\"GET\" action=notify>"); HTMLString.Append("<SELECT NAME=\"lstbx\">"); HTMLString.Append("<OPTION VALUE=\"0\">Start now</OPTION><OPTION VALUE=\"1\">In 1 hr</OPTION>"); HTMLString.Append("<OPTION VALUE=\"2\">In 2 hrs</OPTION><OPTION VALUE=\"3\">In 3 hrs</OPTION>"); HTMLString.Append("<OPTION VALUE=\"4\">In 4 hrs</OPTION></SELECT>"); HTMLString.Append("<input type=checkbox name=chkbx>Notify completion"); HTMLString.Append("<br><input type='submit'>"); HTMLString.Append("<input type=button name='cmd:2' value='Postpone'>"); HTMLString.Append("</body></html>"); // Set the Text property to the HTML string. notification1.Text = HTMLString.ToString();




Weblioに収録されているすべての辞書からNotification.Text プロパティを検索する場合は、下記のリンクをクリックしてください。

- Notification.Text プロパティのページへのリンク