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