Skip to main content

IContext Interface

Namespace: NextDesign.Desktop

Description

When an extension is executed, it is given a context.
The extension implementation can refer to shared variables and running extension configuration information through this context.

Belongs to

NameDescription
GlobalA group of APIs to access the execution environment and execution status of the extension.

Derived from

NameDescription
IEventContextProvides access to the execution context of an event.
ICommandContextProvides the command execution context.

Property

NameDescription
AppExtension execution environment shared variables
Application[Obsolete] Extension execution environment shared variables
ContextOptionContext option
Option definition for the period this context is valid
ExtensionInfoCurrently valid extension information

Method

NameDescription
GetPropertiesGets a list of properties.
GetPropertyGets the property value of the specified identifier.
If the corresponding identifier does not exist, null is returned.
GetPropertyNamesGets a list of property identifiers.
GetResourceStringGets the string of the specified resource key.
The resource is searched for in the resource file of the extension that is valid in this context, with the following priority:
1. The execution language of the current application
2. Japanese resource
3. The first other language resource found

Note that if the corresponding resource key does not exist, it is not identified as a resource key and the specified key is returned as is.
Also, if null or an empty string is specified as the resource key, an empty string is returned.
GetResourceString1Gets the string of the specified resource key.
The substitution "{0}" defined in the resource string is replaced with the string representation of param1 specified in the argument, and the string is returned.
Note that the substitution of resource parameters conforms to String.Format in C#.
For details on how to specify resource strings and how to specify resource keys, see GetResourceString().
GetResourceString2Gets the string of the specified resource key.
The substitution "{0},{1}" defined in the resource string is replaced with the string representation of param1, param2 specified in the argument, and the string is returned.
Note that the substitution of resource parameters conforms to String.Format in C#.
For details on how to specify a resource string and how to specify a resource key, see GetResourceString().
GetResourceString3Gets the string of the specified resource key.
The substitutions "{0},{1},{2}" defined in the resource string are replaced with the string representations of param1, param2, and param3 specified in the arguments, and then returned.
Replacement of resource parameters conforms to the C# String.Format.
For details on how to specify a resource string and how to specify a resource key, see GetResourceString().
HasPropertyChecks whether a property value with the specified identifier exists.
Returns True if a property value with the specified identifier exists.
RemovePropertyRemoves the property value of the specified identifier name.
If the property value of the corresponding identifier name does not exist, nothing is done.
SetPropertySets the property value of the specified identifier name.
If an existing identifier name is specified, the property value is updated with the given value.