Click or drag to resize

Current Class

[Missing <summary> documentation for "T:Altaxo.Current"]

Inheritance Hierarchy
SystemObject
  AltaxoCurrent

Namespace: Altaxo
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class Current

The Current type exposes the following members.

Constructors
 NameDescription
Protected methodCurrent Avoids instantiation of this class from the outside, but allows other Current classes inherit from this class and add new static methods.
Top
Properties
 NameDescription
Public propertyStatic memberAddInTree 
Public propertyStatic memberAnalyticsMonitor 
Public propertyStatic memberApplicationInstanceGuid Gets a Guid that uniquely identifies the current application instance. Needed for drag/drop operations to decide if a drag source is coming from the own instance or another one.
Public propertyStatic memberComManager 
Public propertyStatic memberConsole Returns the console window, which can be used by your scripts for textual output.
Public propertyStatic memberDataDisplay Returns the data display window, which is used to show the data obtained from the data reader tool.
Public propertyStatic memberDispatcher Used to invoke calls in the context of the Gui thread.
Public propertyStatic memberFallbackServiceProvider 
Public propertyStatic memberFitFunctionService Returns the fit function service, which is used to obtain the file based user defined fit functions.
Public propertyStatic memberGui 
Public propertyStatic memberGuiTimer 
Public propertyStatic memberHighResolutionClock Gets a high resolution clock that delivers relative values (TimeSpan values relative to the start of the clock). Those values are guaranteed to be continuously incresing, even if the computer's clock time is changed backwards.
Public propertyStatic memberInfoTextMessageService 
Public propertyStatic memberIProject Gets the current project.
Public propertyStatic memberIProjectService Returns the project service, which provides methods to add worksheet and graphs, or open and close the document.
Public propertyStatic memberIsInDesignMode Gets or sets a value indicating whether the app is in design mode.
Public propertyStatic memberLog 
Public propertyStatic memberMessageService Gets the message service. The message service usually requires action from the user (showing a message box, the user has to click OK to close the message box). If a message should be showed without requiring user interaction, it is better to use InfoTextMessageService.
Public propertyStatic memberPrintingService Returns the printing service, which provides methods for page setup and printing.
Public propertyStatic memberProject Gets the current open project. If the application is in a transition state between two projects, a InvalidOperationException is thrown.
Public propertyStatic memberProjectOrNull Gets the current open project. If the application is in a transition state between two projects, null is returned.
Public propertyStatic memberProjectService 
Public propertyStatic memberPropertyService Returns the property service, which is used to obtain application settings.
Public propertyStatic memberResourceService 
Public propertyStatic memberServices Gets the main service container.
Public propertyStatic memberStatusBar 
Public propertyStatic memberTimerQueue Gets an application wide timer queue to add actions to be scheduled.
Public propertyStatic memberWorkbench Gets the main workbench.
Top
Methods
 NameDescription
Public methodStatic memberAddServiceT(T) 
Public methodStatic memberAddServiceT, U(T) 
Public methodStatic memberAddServiceT, U, V(T) 
Public methodStatic memberDisposeServicesAll 
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodStatic memberGetActiveViewContentService(Type) Equivalent to
C#
SD.Workbench.ActiveViewContent.GetService(type)
, but does not throw a NullReferenceException when ActiveViewContent is null. (instead, null is returned).
Public methodStatic memberGetActiveViewContentServiceT Equivalent to
C#
SD.Workbench.ActiveViewContent.GetService<T>()
, but does not throw a NullReferenceException when ActiveViewContent is null. (instead, null is returned).
Public methodStatic memberGetFutureServiceT Returns a task that gets completed when the service is initialized. This method does not try to initialize the service -- if no other code forces the service to be initialized, the task will never complete.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodStatic memberGetRequiredServiceT Retrieves the service of type T from the provider. If the service cannot be found, a ServiceNotFoundException will be thrown.
Public methodStatic memberGetRequiredServiceT, U Gets the required service. The service is primarily being searched with key T. If it is not found with this key, it is search with key U, thus U has to be a base class or an interface of type T. If the service is found with this second key U and is of type T, the service will be register with the key T in order to avoid further searching.
Public methodStatic memberGetServiceT Gets a service. Returns null if service is not found.
Public methodStatic memberGetServiceT, U 
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberRemoveServiceT 
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventStatic memberServiceChanged Occurs when a service was added or removed. Static classes that cache a service should invalidate their cached service member in response to this event. Attention: Only static classes should subscribe to this event! (Or use a weak event handler in order to avoid memory leaks).
Top
Fields
 NameDescription
Public fieldStatic memberfallbackServiceProviderThe service provider that is used when the "real" service provider is not already set.
Top
See Also