Class CoreContext
The CoreContext is a singleton holding the global state of the core module. Most functionality of the classes in the core module access the state using this class.
public abstract class CoreContext : BaseObject
- Inheritance
-
CoreContext
Properties
public static CoreContext Current { get; set; }
The current instance of the CoreContext. It will be set automatically when a new context class is instantiated.
- Property Value: CoreContext
public virtual Model Document { get; set; }
- Property Value: Model
public LayerCollection Layers { get; }
- Property Value: LayerCollection
public MessageHandler MessageHandler { get; }
- Property Value: MessageHandler
public ParameterSets Parameters { get; }
- Property Value: ParameterSets
public UndoHandler UndoHandler { get; }
- Property Value: UndoHandler
public virtual Viewport Viewport { get; protected set; }
- Property Value: Viewport
public virtual Workspace Workspace { get; protected set; }
- Property Value: Workspace
Methods
public void Dispose()
public virtual T LoadLocalSettings<T>(string name) where T : class
namestring
- Returns: T
T
public virtual void SaveLocalSettings(string name, object obj)
public virtual void SaveSettings()