Bagikan melalui


PivotViewerDateTimeProperty Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Represents the PivotViewerProperty for date time values.

Inheritance Hierarchy

System.Object
  System.Windows.Controls.Pivot.PivotViewerProperty
    System.Windows.Controls.Pivot.PivotViewerDateTimeProperty

Namespace:  System.Windows.Controls.Pivot
Assembly:  System.Windows.Controls.Pivot (in System.Windows.Controls.Pivot.dll)

Syntax

'Declaration
Public NotInheritable Class PivotViewerDateTimeProperty _
    Inherits PivotViewerProperty
public sealed class PivotViewerDateTimeProperty : PivotViewerProperty

The PivotViewerDateTimeProperty type exposes the following members.

Constructors

  Name Description
Public method PivotViewerDateTimeProperty() Initializes a new instance of the PivotViewerDateTimeProperty class.
Public method PivotViewerDateTimeProperty(String, String, String, PivotViewerPropertyOptions, Binding) Initializes a new instance of the PivotViewerDateTimeProperty class with the Id, display name, format, display options and the binding value.
Public method PivotViewerDateTimeProperty(String, String, String, PivotViewerPropertyOptions, Binding, List<CalendarDateRange>) Initializes a new instance of the PivotViewerDateTimeProperty class with the Id, display name, format, options, binding value and presets.
Public method PivotViewerDateTimeProperty(String, String, String, PivotViewerPropertyOptions, Binding, PivotViewerDateTimePropertyRangesProvider, List<CalendarDateRange>) Initializes a new instance of the PivotViewerDateTimeProperty class with the Id, display name, format, options, binding value, provider and presets..

Top

Properties

  Name Description
Public property Binding Gets or sets the binding that specifies how to compute the value for this PivotViewerProperty. (Inherited from PivotViewerProperty.)
Public property DisplayName Gets or sets the display name of the PivotViewerProperty. (Inherited from PivotViewerProperty.)
Public property Format Gets or sets the .NET format string for values of the PivotViewerProperty. (Inherited from PivotViewerProperty.)
Public property Id Gets or sets the Id of the PivotViewerProperty. (Inherited from PivotViewerProperty.)
Public property IsLocked Gets a value that specifies whether the PivotViewerProperty is locked. (Inherited from PivotViewerProperty.)
Public property Options Gets or sets values from the PivotViewerPropertyOptions to define how the PivotViewerProperty is displayed and treated by PivotViewer. (Inherited from PivotViewerProperty.)
Public property PresetProvider Gets or sets the callback that provides groups of date ranges to be made available for this PivotViewerDateTimeProperty.
Public property Presets Gets or sets a list of date ranges to be made available for this PivotViewerDateTimeProperty.
Public property PropertyType Gets the type of the PivotViewerProperty. (Inherited from PivotViewerProperty.)

Top

Methods

  Name Description
Public methodStatic member AutogenerateCalendarDateRangePresets Returns two lists of auto-generated presets for the specified PivotViewerDateTimeProperty based on the date/time values.
Public method CompareTo Compares the current instance of PivotViewerProperty with another PivotViewerProperty. (Inherited from PivotViewerProperty.)
Protected method EnsureUnlocked Throws an InvalidOperationException if IsLocked is true. (Inherited from PivotViewerProperty.)
Public method Equals Determines whether two PivotViewerProperty instances are equal. (Inherited from PivotViewerProperty.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Retrieves a hash code based on the PivotViewerProperty's Id and PropertyType. (Inherited from PivotViewerProperty.)
Public methodStatic member GetStaticAndAutoCalendarDateRangePresets Returns one list of presets for the specified PivotViewerDateTimeProperty and another auto-generated list of presets.
Public methodStatic member GetStaticCalendarDateRangePresets Returns the presets for the specified PivotViewerDateTimeProperty as a single list.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Retrieves the string representation of the PivotViewerProperty. (Inherited from PivotViewerProperty.)

Top

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.