PlotAxis.LabelsFormat Property |
Top |
DescriptionSets the formatting string that will be used to display the values for the labels. The formatting string follows the standard C# formatting as used with the .NET ToString() method. Example formats: '0.000', '#,##0.###', and '00e-0'. See the help file for more information and additional examples.
Any C# format string can be used in both the LabelsFormat property and in the PlotWindow GUI options. When using the object editor GUI, the format string can be typed directly into the text box; which is useful for testing out format specifiers since the plot will update instantly. If the string used for the format specifier is not recognized, the last valid LabelsFormat string will be used.
The LabelsFormat property is used for both numbers and dates. If a date format is desired, be sure to change the UseDateTimeFormatting property prior to changing the LabelsFormat property.
Note: The format will follow the regional specifications of the system running FreeFlyer. These examples are generated using the "en-US" region specifications.
The following tables provide specifiers that can be used to format numeric axes labels. The formatted examples use 1234.56 as the number being formatted.
The following table provides a list of some specifiers that allow for generic formatting of dates and times. The formatted examples use "January 16, 2020 01:36:24.38 PM" as the date being formatted.
If the plot requires a more customized label for the dates and times, the table below provides some more examples that allow more flexibility.
Timing Precision Mode This page describes functionality in nanosecond timing precision mode. Click here to see the documentation for this object in millisecond timing precision mode.
Attributes
Syntax
See also
|