Class CommandBarGalleryPopup
A Popup menu containing a gallery, and optionally some menu items
Implements
Inherited Members
Namespace: ABB.Robotics.RobotStudio.Environment
Assembly: ABB.Robotics.RobotStudio.Environment.dll
Syntax
public class CommandBarGalleryPopup : CommandBarPopup, ICommandBarControlContainer
Constructors
CommandBarGalleryPopup(String)
Creates a new CommandBarGalleryPopup
Declaration
public CommandBarGalleryPopup(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id | Unique ID of the control |
CommandBarGalleryPopup(String, String)
Creates a new CommandBarGalleryPopup
Declaration
public CommandBarGalleryPopup(string id, string caption)
Parameters
Type | Name | Description |
---|---|---|
String | id | Unique Id of the control |
String | caption | Control caption |
Properties
GalleryControls
Returns a collection of gallery items
Declaration
public CommandBarControlCollection GalleryControls { get; }
Property Value
Type | Description |
---|---|
CommandBarControlCollection |
GalleryItemSize
Gets or sets the size of each item in the gallery
Declaration
public Size GalleryItemSize { get; set; }
Property Value
Type | Description |
---|---|
Size |
GalleryTextPosition
Gets or sets the position of text in relation to each gallery item image
Declaration
public GalleryTextPosition GalleryTextPosition { get; set; }
Property Value
Type | Description |
---|---|
GalleryTextPosition |
HasEnabledItems
Returns true if the gallery has any enabled items
Declaration
public override bool HasEnabledItems { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
NumberOfColumns
Gets or sets the number of columns to display. The default is one.
Declaration
public int NumberOfColumns { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
NumberOfTextLines
Gets or sets the number lines for text displayed below the item image
Declaration
public int NumberOfTextLines { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
FromID(String)
Returns the CommandBarGalleryPopup that has the specified ID, or null if none exists.
Declaration
public static CommandBarGalleryPopup FromID(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id | ID to find popup for |
Returns
Type | Description |
---|---|
CommandBarGalleryPopup | The CommandBarGalleryPopup with the specified ID |
Remarks
This is the same as UIEnvironment.CommandBarControls[id] as CommandBarGalleryPopup