Class OperationCatalogItemHelper
Inheritance
OperationCatalogItemHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class OperationCatalogItemHelper
Methods
AsGroup(ComWrapper<ICamApiOperationCatalogItem>)
Cast to the group facet; a null wrapper if the item is an operation
Declaration
public static ComWrapper<ICamApiOperationCatalogGroup> AsGroup(this ComWrapper<ICamApiOperationCatalogItem> itemCom)
Parameters
Returns
AsOperation(ComWrapper<ICamApiOperationCatalogItem>)
Cast to the operation facet; a null wrapper if the item is a group
Declaration
public static ComWrapper<ICamApiOperationCatalogOperation> AsOperation(this ComWrapper<ICamApiOperationCatalogItem> itemCom)
Parameters
Returns
Caption(ComWrapper<ICamApiOperationCatalogItem>)
Declaration
public static string Caption(this ComWrapper<ICamApiOperationCatalogItem> itemCom)
Parameters
Returns
IconFile(ComWrapper<ICamApiOperationCatalogGroup>)
Aliased path to the group icon file
Declaration
public static string IconFile(this ComWrapper<ICamApiOperationCatalogGroup> groupCom)
Parameters
Returns
Id(ComWrapper<ICamApiOperationCatalogItem>)
Unique identifier of the item inside the catalog
Declaration
public static string Id(this ComWrapper<ICamApiOperationCatalogItem> itemCom)
Parameters
Returns
IsUserOperation(ComWrapper<ICamApiOperationCatalogOperation>)
Whether the entry references a user operation rather than a plain operation type
Declaration
public static bool IsUserOperation(this ComWrapper<ICamApiOperationCatalogOperation> operationCom)
Parameters
Returns
Kind(ComWrapper<ICamApiOperationCatalogItem>)
Whether the item is a group or an operation
Declaration
public static TCamApiOperationCatalogItemKind Kind(this ComWrapper<ICamApiOperationCatalogItem> itemCom)
Parameters
Returns
Order(ComWrapper<ICamApiOperationCatalogItem>)
Sort key within the parent
Declaration
public static double Order(this ComWrapper<ICamApiOperationCatalogItem> itemCom)
Parameters
Returns
Parent(ComWrapper<ICamApiOperationCatalogItem>)
Parent item, or a null wrapper for a top-level item
Declaration
public static ComWrapper<ICamApiOperationCatalogItem> Parent(this ComWrapper<ICamApiOperationCatalogItem> itemCom)
Parameters
Returns
SetCaption(ComWrapper<ICamApiOperationCatalogItem>, string)
Set caption (meaningful for groups)
Declaration
public static void SetCaption(this ComWrapper<ICamApiOperationCatalogItem> itemCom, string value)
Parameters
SetIconFile(ComWrapper<ICamApiOperationCatalogGroup>, string)
Set the aliased path to the group icon file
Declaration
public static void SetIconFile(this ComWrapper<ICamApiOperationCatalogGroup> groupCom, string value)
Parameters
SetVisible(ComWrapper<ICamApiOperationCatalogItem>, bool)
Set visibility in the "New operation" window
Declaration
public static void SetVisible(this ComWrapper<ICamApiOperationCatalogItem> itemCom, bool value)
Parameters
TypeId(ComWrapper<ICamApiOperationCatalogOperation>)
Declaration
public static string TypeId(this ComWrapper<ICamApiOperationCatalogOperation> operationCom)
Parameters
Returns
Visible(ComWrapper<ICamApiOperationCatalogItem>)
Visibility in the "New operation" window
Declaration
public static bool Visible(this ComWrapper<ICamApiOperationCatalogItem> itemCom)
Parameters
Returns