![]() |
This document is archived and information here might be outdated. Recommended version. |
| ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapTimeDescription Interface (ArcObjects .NET 10.4 SDK) |
Provides access to time properties of a MapDescription.
| Description | ||
|---|---|---|
![]() |
TimeReference | Time reference used by the time aware content. |
![]() |
TimeValue | Time value that will be used by the time aware content of the map. |
| CoClasses and Classes | Description |
|---|---|
| MapDescription | The Map Description coclass contains settings of a map in the current document. |
Example: setting time to a MapDescription
IMapTimeDescription pMapTimeDesc=pMapDesc as IMapTimeDescription;
ITime pTime=new TimeClass();
// date-time in YYYY/MM/DD hh:mm:ss format
pTime.SetFromTimeString(esriTimeStringFormat.esriTSFYearThruSecondWithSlash, "2000/01/01 08:00:00");
ITimeInstant pTimeInstant=new TimeInstantClass();
pTimeInstant.Time=pTime;
pTimeInstant.TimeReference=pMapTimeDesc.TimeReference;
pMapTimeDesc.TimeValue=pTimeInstant;