获取或设置与占位符复合带格式的字符串。
命名空间: Microsoft.SharePoint.WebControls
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Property FormatText As String
Get
Set
用法
Dim instance As FormattedString
Dim value As String
value = instance.FormatText
instance.FormatText = value
public string FormatText { get; set; }
属性值
类型:System.String
包含.Net复合格式化的字符串String 。
备注
FormatText的值可能包含占位符,如"{0}"或"{1:hh}"。这些是通过Render方法替换为实际值。