Notification.Caption Property
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets or sets a string specifying the title text for the message balloon.
Namespace: Microsoft.WindowsCE.Forms
Assembly: Microsoft.WindowsCE.Forms (in Microsoft.WindowsCE.Forms.dll)
Syntax
'Declaration
Public Property Caption As String
Get
Set
'Usage
Dim instance As Notification
Dim value As String
value = instance.Caption
instance.Caption = value
public string Caption { get; set; }
public:
property String^ Caption {
String^ get ();
void set (String^ value);
}
member Caption : string with get, set
Property Value
Type: System.String
A string that specifies the caption text. The default value is an empty string ("").
Remarks
The background color of the caption is dependent on the current theme of the user.
Use the Text property to modify the text in the body of the message balloon.
Examples
The following code creates a notification and sets the caption of the message balloon. This code example is part of a larger example provided for the Notification class.
Notification1.Caption = "Notification scenario - data download"
notification1.Caption = "Notification scenario - data download";
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Platforms
Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Compact Framework
Supported in: 3.5, 2.0