Class ActionLayoutAttribute
Define UI informations for an action.
Inheritance
ActionLayoutAttribute
Inherited Members
Namespace: SdlSdl.DesktopIntegrationApiExtensions
Assembly: Sdl.Desktop.IntegrationApi.Extensions.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class ActionLayoutAttribute : AbstractLayoutAttribute, _Attribute, ILocationAware
Constructors
ActionLayoutAttribute(Type, uint, DisplayType, string, bool)
Initialize the instance of the action layout attribute.
Declaration
public ActionLayoutAttribute(Type locationByType, uint zIndex = 0, DisplayType displayType = DisplayType.Default, string name = "", bool isSeparator = false)
Parameters
Type | Name | Description |
---|---|---|
Type | locationByType | The location where the visual representation of the action should be added. |
uint | zIndex | Defines a 0 based index order for the UI elements where the highest value is the most important. |
DisplayType | displayType | The UI display type of the action. |
string | name | Used to override the default name of the action and replace it with a new provided name. |
bool | isSeparator | Is separator determines if a separator should be added before the action |
Remarks
You may use as a locationByType