Class ActionLayoutAttribute
Define UI informations for an action.
Implements
Inherited Members
Namespace: Sdl.Desktop.IntegrationApi.Extensions
Assembly: Sdl.Desktop.IntegrationApi.Extensions.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class ActionLayoutAttribute : AbstractLayoutAttribute, ILocationAware
Constructors
ActionLayoutAttribute(Type, UInt32, DisplayType, String, Boolean)
Initialize the instance of the action layout attribute.
Declaration
public ActionLayoutAttribute(Type locationByType, uint zIndex = 0U, DisplayType displayType = DisplayType.Default, string name = "", bool isSeparator = false)
Parameters
Type | Name | Description |
---|---|---|
System.Type | locationByType | The location where the visual representation of the action should be added. |
System.UInt32 | 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. |
System.String | name | Used to override the default name of the action and replace it with a new provided name. |
System.Boolean | isSeparator | Is separator determines if a separator should be added before the action |
Remarks
You may use as a locationByType