GefClassFormat.SwitchToNextGraphic (method)

Switches the graphic to the next graphic in the Z-order of the class graphic file.
Syntax: object.SwitchToNextGraphic
Description: The SwitchToNextGraphic method switches the graphic to the next named graphic in the Z-order of the class graphic file. If the current graphic is the last graphic it will wrap around to the first named graphic. If the current graphic is invalid it sets it to the first named graphic. If the current graphic file can not be found this method does nothing.

Example:

Sub TestClass
  Dim cimScreen As GefObjectModel.GefScreen
 
  Set cimScreen = CimGetScreen()
 
  Dim cimClassObj As GefObjectModel.GefObject
 
  Set cimClassObj = cimScreen.Object.Objects.Item("TestClass")
 
  cimClassObj.ClassFormat.SwitchToNextGraphic
 
  cimScreen.Refresh False
End Sub
See Also: GraphicIndex , GraphicCount , SwitchToPreviousGraphic , SwitchToFirstGraphic , SwitchToNextGraphic , SwitchToPreviousGraphic