Class LocaleSettings
Represents the locale settings for a report, including date and time formats and time zone.
Inheritance
Namespace: BoldReports.Web
Assembly: BoldReports.Web.dll
Syntax
public class LocaleSettings : Object, IReportDispose, IDisposable
Remarks
This class provides properties for date formats, time formats, and the time zone that can be used to apply locale-specific settings to reports. It also implements the IReportDispose interface to ensure proper disposal of resources.
Constructors
LocaleSettings()
Declaration
public LocaleSettings()
Properties
DateFormat
Gets or sets the date format to be used in reports.
Declaration
public string DateFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the date format. |
TimeFormat
Gets or sets the time format to be used in reports.
Declaration
public string TimeFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the time format. |
TimeZone
Gets or sets the time zone for the report data.
Declaration
public string TimeZone { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the time zone. |
Methods
Dispose()
Provides a mechanism for releasing unmanaged resources.
Declaration
public void Dispose()
Remarks
This method sets the properties to null, which helps to release any references to potentially large resources and ensures the object is disposed of correctly.