Class RibbonGroupAttribute
Decorate a ribbon group of a Studio application provinding metadata informations
Inheritance
Implements
Inherited Members
Namespace: SdlSdl.DesktopIntegrationApiExtensions
Assembly: Sdl.Desktop.IntegrationApi.Extensions.dll
Syntax
[ExtensionPointInfo("Ribbon Groups", ExtensionPointBehavior.Static)]
[AttributeUsage(AttributeTargets.Class)]
public class RibbonGroupAttribute : AbstractCommandBarItemAttribute, _Attribute
Remarks
The framework also provides support for getting property values from the PluginResources.resx resource file, which is deployed together with the plug-in manifest. To specify that the value of a certain string property needs to be retrieved from the resource file, annotate the property definition with the PluginResourceAttribute attribute. Users should now specify the name of the resource key, instead of the actual value, as the property value. When no resource string with the specified key can be found, the framework keeps the specified string as the property value. To define non-string properties whose value is stored in the PluginResources.resx resource file, create a string property, which value should be set to a resource key. When consuming the extension, use GetPluginResource<T>(string) tio retriece the resource from the plug-in resource file.
Constructors
RibbonGroupAttribute(string)
Initialize the instance of the ribbon group attribute
Declaration
public RibbonGroupAttribute(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | The unique identifier of the ribbon group |
Remarks
This constructor should be used only if pluginresources are used to resolve the name and description of the extension.
The resource keys for name and description are built from id and postfixed with _Name and _Description.
RibbonGroupAttribute(string, string)
Initialize the instance of the ribbon group attribute
Declaration
public RibbonGroupAttribute(string id, string name)
Parameters
Type | Name | Description |
---|---|---|
string | id | The unique identifier of the ribbon group |
string | name | The name that will be displayed by the ribbon group. |
RibbonGroupAttribute(string, string, Type)
Initialize the instance of the ribbon group attribute
Declaration
public RibbonGroupAttribute(string id, string name, Type contextByType)
Parameters
Type | Name | Description |
---|---|---|
string | id | The unique identifier of the ribbon group |
string | name | The name that will be displayed by the ribbon group. |
Type | contextByType | The context in which the ribbon is working |
RibbonGroupAttribute(string, Type)
Initialize the instance of the ribbon group attribute
Declaration
public RibbonGroupAttribute(string id, Type contextByType)
Parameters
Type | Name | Description |
---|---|---|
string | id | The unique identifier of the ribbon group |
Type | contextByType | The context in which the ribbon group is available and enabled. |
Remarks
This constructor should be used only if pluginresources are used to resolve the name and description of the extension.
The resource keys for name and description are built from id and postfixed with _Name and _Description.