C1.Win.C1FlexGrid Namespace > RowCol Class : Format Property |
'Declaration
<CategoryAttribute("Appearance")> <C1DescriptionAttribute("Gets or sets the format used to display values in this row or column.")> <EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="C1.Design.C1FormatStringUITypeEditor, C1.Win.C1FlexGrid.4.Design")> <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> <DefaultValueAttribute()> Public Property Format As String
[Category("Appearance")] [C1Description("Gets or sets the format used to display values in this row or column.")] [Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="C1.Design.C1FormatStringUITypeEditor, C1.Win.C1FlexGrid.4.Design")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [DefaultValue()] public string Format {get; set;}
[Category("Appearance")] [C1Description("Gets or sets the format used to display values in this row or column.")] [Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="C1.Design.C1FormatStringUITypeEditor, C1.Win.C1FlexGrid.4.Design")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [DefaultValue()] public: property String^ Format { String^ get(); void set ( String^ value); }
The Format property affects how values are formatted for display, not the values stored internally. To retrieve the formatted value of a cell, use the GetDataDisplay(Int32,Int32) property.
The Format string has the same semantics as the format argument in the .NET System.String.Format(System.String,System.Object) method. For details and a complete set of examples, see the .NET documentation.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2