共用方式為


FormattedString.Render Method

Writes the final output (in which actual values have replaced the placeholders in the FormatText value) to the specified writer stream.

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

Syntax

'Declaration
Protected Overrides Sub Render ( _
    output As HtmlTextWriter _
)
'Usage
Dim output As HtmlTextWriter

Me.Render(output)
protected override void Render(
    HtmlTextWriter output
)

Parameters

Remarks

This override calls the String.Format(IFormatProvider, String, []) method to produce the final output with actual values replacing placeholders. See the reference topic on that method for additional information about how this process is carried out.

The index order of a child control in the Control() property determines which placeholder it replaces.

See Also

Reference

FormattedString Class

FormattedString Members

Microsoft.SharePoint.WebControls Namespace