TableFormat - property of the tvGraph object
Format of column values in the table mode.
Property access for read and write
. The preset value of this property is defined in the "Table mode > Format > Value
" configurator of this object.
The property is used only if the table mode
When the object is created, the value of this property is copied from the PmgTrendViewer.GraphInit
Initial value is the text "%4.f"
Setting this property differs according to setting the TableFormatType
If it is 10, then the formatting rule is set to TableFormat in the form, for example, "%x.yf" where: x=maximum number of places, y=y number of decimal places from the x number of places at the most.
If it is 1, then the maximum number of decimal places is set to the TableFormat.
The view format is a real number with the maximum decimal places of 2.
var oTView = pMe.Items("../TrendView");
var oGraph = oTView.Trends("t1").GraphDefault;
var vTableFormat = oGraph.TableFormat;
// Reading from the property
// Writing into the property
oGraph.TableFormatType = 1;
oGraph.TableFormat = 2;
The view format is a real number with the maximum places of 8 digits from which there are 2 decimal places.
oGraph.TableFormatType = 10;
oGraph.TableFormat = "8.2f";