共用方式為


FormattedString.FormatText Property

Gets or sets the composite formatted string with placeholders.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Property FormatText As String
    Get
    Set
'Usage
Dim instance As FormattedString
Dim value As String

value = instance.FormatText

instance.FormatText = value
public string FormatText { get; set; }

Property Value

Type: System.String
A String containing a .Net composite formatted string.

Remarks

The value of FormatText may contain placeholders such as "{0}" or "{1:hh}". These are replaced by actual values by the Render method.

See Also

Reference

FormattedString Class

FormattedString Members

Microsoft.SharePoint.WebControls Namespace