AGI STK Objects 11 Send comments on this topic.
IAgVeGfxIntervalsCollection Collection





Description

Custom Intervals Graphics List

Object Model

Public Methods

Public Method Add Adds a new element to the collection. Start/Stop params use DateFormat Dimension.
Public Method RemoveAll Removes all elements from the collection.
Public Method RemoveAt Removes an element from the collection using specified index.

Public Properties

Public Property Count Returns the number of elements in a collection.
Public Property Item Given an index, returns an element in the collection.

Example

Configure custom intervals graphics
[C#] Copy Code
IAgVeGfxIntervalsCollection customIntervals = customAttributes.Intervals; 
 
// Add intervals 
customIntervals.Add("1 Jan 2012 12:00:00.000""1 Jan 2012 14:00:00.000"); 
customIntervals.Add("2 Jan 2012 01:00:00.000""2 Jan 2012 02:00:00.000"); 
 
// Deconflict intervals if necessary 
customAttributes.Deconflict(); 
 

Configure custom intervals graphics
[Visual Basic .NET] Copy Code
Dim customIntervals As IAgVeGfxIntervalsCollection = customAttributes.Intervals

' Add intervals
customIntervals.Add("1 Jan 2012 12:00:00.000", "1 Jan 2012 14:00:00.000")
customIntervals.Add("2 Jan 2012 01:00:00.000", "2 Jan 2012 02:00:00.000")

' Deconflict intervals if necessary
customAttributes.Deconflict()

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1