DataItem.Format Property

 

Applies To: SQL Server 2016 Preview

Gets or sets the formatting property for DataItem values.

Namespace:   Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

Syntax

[TypeConverterAttribute("Microsoft.AnalysisServices.Design.FormatConverter, Microsoft.AnalysisServices.Design")]
[XmlElementAttribute(IsNullable = false)]
public string Format { get; set; }
public:
[TypeConverterAttribute("Microsoft.AnalysisServices.Design.FormatConverter, Microsoft.AnalysisServices.Design")]
[XmlElementAttribute(IsNullable = false)]
property String^ Format {
    String^ get();
    void set(String^ value);
}
[<TypeConverterAttribute("Microsoft.AnalysisServices.Design.FormatConverter, Microsoft.AnalysisServices.Design")>]
[<XmlElementAttribute(IsNullable = false)>]
member Format : string with get, set
<TypeConverterAttribute("Microsoft.AnalysisServices.Design.FormatConverter, Microsoft.AnalysisServices.Design")>
<XmlElementAttribute(IsNullable := False)>
Public Property Format As String

Property Value

Type: System.String

A string with the formatting value.

Remarks

Trimming is the only formatting enabled in the current version of SQL Server Analysis Services.

The supported format values are TrimRight, TrimLeft, TrimAll, and TrimNone.

Default value is TrimRight.

See Also

DataItem Class
Microsoft.AnalysisServices Namespace

Return to top