Stock

This page covers ISheet, ISheets, ISheetChangeEvent, ISheetChangeEventHandler, ISheetDefect, ISheetDefects, ISheetDefectChangeEvent, and ISheetDefectChangeEventHandler. These interfaces describe available stock items and the rectangular regions attached to them, which are either defects or holes (see below).

An ISheet exposes its original Defects separately from Holes, plus per-edge MinEdgeDistance and mutable ITcAlgorithmData. Its payload is opaque and implementation-defined; no public key/value schema or compatibility guarantee is provided. Preserve the stock-property distinctions when importing or exporting stock.

Interfaces

ISheet

Stock sheet definition including material, edging, defect list, reuse constraints, and extraction cost.

Source: SDK/include/pascal/uISheet.pas

Properties

  • Property name
    Id
    Type
    Int64
    Description

    Persistent numeric identifier used by TonCut to track the object.

    Declaration

    property Id: Int64 read GetId write SetId;

    Published SDK declaration languages: Pascal, C++.

  • Property name
    Width
    Type
    Cardinal
    Description

    Width value stored on the object.

    Declaration

    property Width: Cardinal read GetWidth write SetWidth;

    Published SDK declaration languages: Pascal, C++.

  • Property name
    Length
    Type
    Cardinal
    Description

    Length value stored on the object.

    Declaration

    property Length: Cardinal read GetLength write SetLength;

    Published SDK declaration languages: Pascal, C++.

  • Property name
    Quantity
    Type
    Integer
    Description

    Quantity associated with the current object.

    Declaration

    property Quantity: Integer read GetQuantity write SetQuantity;

    Published SDK declaration languages: Pascal, C++.

  • Property name
    StackSize
    Type
    Cardinal
    Description

    Maximum stack size or batch size.

    Declaration

    property StackSize: Cardinal read GetStackSize write SetStackSize;

    Published SDK declaration languages: Pascal, C++.

  • Property name
    Ornament
    Type
    Description

    Grain or ornament direction associated with the stock item.

    Declaration

    property Ornament: TOrnament read GetOrnament write SetOrnament;

    Published SDK declaration languages: Pascal, C++.

  • Property name
    Identifier
    Type
    WideString
    Description

    External or user-facing identifier stored with the object.

    Declaration

    property Identifier: WideString read GetIdentifier write SetIdentifier;

    Published SDK declaration languages: Pascal, C++.

  • Property name
    Description
    Type
    WideString
    Description

    Longer descriptive text stored with the object.

    Declaration

    property Description: WideString read GetDescription write SetDescription;

    Published SDK declaration languages: Pascal, C++.

  • Property name
    Material
    Type
    IMaterial
    Description

    Material linked to the object.

    Declaration

    property Material: IMaterial read GetMaterial write SetMaterial;

    Published SDK declaration languages: Pascal, C++.

  • Property name
    Edging
    Type
    IRectangle
    Description

    Rectangle-like edging or margin helper attached to the object.

    Declaration

    property Edging: IRectangle read GetEdging;

    Published SDK declaration languages: Pascal.

  • Property name
    MinEdgeDistance
    Type
    IRectangle
    Description

    Per-edge minimum distance exposed as a signed rectangle; a negative side means inherited or unspecified.

    Declaration

    property MinEdgeDistance: IRectangle read GetMinEdgeDistance;

    Published SDK declaration languages: Pascal.

  • Property name
    Priority
    Type
    Integer
    Description

    Gets or sets the stock priority for this sheet: an integer from cStockPriorityMin to cStockPriorityMax (0 to 100); a higher value is consumed earlier. cStockPriorityLow (0) is the "low" label and cStockPriorityNormal (10) is the default "normal" label. It is a soft signal that factors into the sheet score and only breaks ties in consumption order. Breaking change: this property used to be the TOldStockPriority enum. GetPriority/SetPriority keep the same vtable slots and interface GUID, but the signature changed in place, so a plugin binary built against the previous enum is unsafe to load and must be rebuilt against the current SDK before it runs again.

    Declaration

    property Priority: Integer read GetPriority write SetPriority;

    Published SDK declaration languages: Pascal.

  • Property name
    CutShiftHorzLimit
    Type
    Integer
    Description

    Horizontal limit for cut shifting.

    Declaration

    property CutShiftHorzLimit: Integer read GetCutShiftHorzLimit write SetCutShiftHorzLimit;

    Published SDK declaration languages: Pascal.

  • Property name
    CutShiftVertLimit
    Type
    Integer
    Description

    Vertical limit for cut shifting.

    Declaration

    property CutShiftVertLimit: Integer read GetCutShiftVertLimit write SetCutShiftVertLimit;

    Published SDK declaration languages: Pascal.

  • Property name
    EffectiveCutShiftHorzLimit
    Type
    Integer
    Description

    Gets effective cut shift horz limit.

    Declaration

    property EffectiveCutShiftHorzLimit: Integer read GetEffectiveCutShiftHorzLimit;

    Published SDK declaration languages: Pascal.

  • Property name
    EffectiveCutShiftVertLimit
    Type
    Integer
    Description

    Effective vertical cut-shift limit after host rules are applied.

    Declaration

    property EffectiveCutShiftVertLimit: Integer read GetEffectiveCutShiftVertLimit;

    Published SDK declaration languages: Pascal.

  • Property name
    ExtractionCost
    Type
    TTcPrice
    Description

    Gets or sets extraction cost.

    Declaration

    property ExtractionCost: TTcPrice read GetExtractionCost write SetExtractionCost;

    Published SDK declaration languages: Pascal.

  • Property name
    PricePerSqM
    Type
    TTcPrice
    Description

    Gets or sets this stock item’s own price per square metre, overriding its material’s PricePerSqM for this item alone. cStockPriceAbsent (-1) means no override is set, so the material price applies; any other value, including an explicit 0, must be finite and >= 0. GetPricePerSqM/SetPricePerSqM are new vtable slots appended at the end of the interface, after EndUpdate, under the same interface GUID, so no existing slot moves; every ISheet implementer must add both methods. Engine version 24 carries these slots, and the host refuses a plugin whose EngineVersion does not match, so rebuild plugins against the current SDK.

    Declaration

    property PricePerSqM: TTcPrice read GetPricePerSqM write SetPricePerSqM;

    Published SDK declaration languages: Pascal.

  • Property name
    CustomData
    Type
    WideString
    Description

    Opaque custom text payload stored with the object.

    Declaration

    property CustomData: WideString read GetCustomData write SetCustomData;

    Published SDK declaration languages: Pascal.

  • Property name
    AlgorithmData
    Type
    ITcAlgorithmData
    Description

    Mutable access to opaque, implementation-defined algorithm data owned by the current device, material, piece, or stock sheet. No public payload schema or compatibility guarantee is provided.

    Declaration

    property AlgorithmData: ITcAlgorithmData read GetAlgorithmData;

    Published SDK declaration languages: Pascal.

  • Property name
    Defects
    Type
    ISheetDefects
    Description

    Read-only collection of the stock sheet’s defects: damaged material, such as a scratch. A defect is still material, so it can be cut through and may end up inside a remnant or waste, but pieces must not be placed on it. Holes are exposed separately through Holes; both use the ISheetDefects collection type.

    Declaration

    property Defects: ISheetDefects read GetDefects;

    Published SDK declaration languages: Pascal.

  • Property name
    Holes
    Type
    ISheetDefects
    Description

    Read-only collection of holes: areas where the stock (or a remnant, on ISolutionWaste) has no material at all. A hole comes with the stock, is never created by TonCut, is not waste, and is not usable or available area. Support is currently limited. Holes use the same ISheetDefects collection type as defects, but their meaning differs.

    Declaration

    property Holes: ISheetDefects read GetHoles;

    Published SDK declaration languages: Pascal.

  • Property name
    AvailableQuantity
    Type
    Cardinal
    Description

    Remaining quantity currently available.

    Declaration

    property AvailableQuantity: Cardinal read GetAvailableQuantity;

    Published SDK declaration languages: Pascal.

  • Property name
    Field
    Type
    TField
    Description

    Area-like value stored on the object.

    Declaration

    property Field: TField read GetField;

    Published SDK declaration languages: Pascal.

  • Property name
    FieldOfAll
    Type
    TField
    Description

    Gets field of all.

    Declaration

    property FieldOfAll: TField read GetFieldOfAll;

    Published SDK declaration languages: Pascal.

  • Property name
    OnChange
    Type
    INotifyEvent
    Description

    Event fired when the object or collection changes.

    Declaration

    property OnChange: INotifyEvent read GetOnChange;

    Published SDK declaration languages: Pascal.

  • Property name
    OnIdChange
    Type
    IIdChangeEvent
    Description

    Event fired when an identifier changes.

    Declaration

    property OnIdChange: IIdChangeEvent read GetOnIdChange;

    Published SDK declaration languages: Pascal.

  • Property name
    OnDefectAdd
    Type
    ISheetDefectChangeEvent
    Description

    Event exposed through OnDefectAdd.

    Declaration

    property OnDefectAdd: ISheetDefectChangeEvent read GetOnDefectAdd;

    Published SDK declaration languages: Pascal.

  • Property name
    OnDefectRemove
    Type
    ISheetDefectChangeEvent
    Description

    Event exposed through OnDefectRemove.

    Declaration

    property OnDefectRemove: ISheetDefectChangeEvent read GetOnDefectRemove;

    Published SDK declaration languages: Pascal.

  • Property name
    OnDefectChange
    Type
    ISheetDefectChangeEvent
    Description

    Event exposed through OnDefectChange.

    Declaration

    property OnDefectChange: ISheetDefectChangeEvent read GetOnDefectChange;

    Published SDK declaration languages: Pascal.

Methods

  • Method name
    IsStandard()
    Type
    Boolean
    Description

    Return is standard.

    Declaration

    function IsStandard(): Boolean; safecall;

    Published SDK declaration languages: Pascal.

    Returns
    Returns true if the sheet comes from a standard-sheet definition.
  • Method name
    Assign()
    Type
    procedure
    Description

    Copy values from another object of the same type.

    Declaration

    procedure Assign(const aSheet: ISheet); safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aSheetconst
    Sheet instance being queried or modified.
  • Method name
    BeginUpdate()
    Type
    procedure
    Description

    Start a batched update so change notifications can be delayed.

    Declaration

    procedure BeginUpdate(); safecall;

    Published SDK declaration languages: Pascal.

  • Method name
    EndUpdate()
    Type
    procedure
    Description

    Finish a batched update and allow deferred notifications to resume.

    Declaration

    procedure EndUpdate(); safecall;

    Published SDK declaration languages: Pascal.


ISheets

Collection interface used to create, enumerate, query, and reload a shared Desktop object set.

Source: SDK/include/pascal/uISheets.pas

Properties

  • Property name
    Count
    Type
    Integer
    Description

    Number of items currently exposed by the interface.

    Declaration

    property Count: Integer read GetCount;

    Published SDK declaration languages: Pascal, C++.

  • Property name
    Items
    Type
    ISheet
    Description

    Indexed property used to read one item from the collection.

    Declaration

    property Items[aIndex: Cardinal]: ISheet read GetByIndex; default;

    Published SDK declaration languages: Pascal, C++.

    Index Parameters
    aIndex
    Cardinal
    Zero-based position within a collection.
    Value
    The collection item located at the supplied index.
  • Property name
    Field
    Type
    TField
    Description

    Area-like value stored on the object.

    Declaration

    property Field: TField read GetField;

    Published SDK declaration languages: Pascal.

  • Property name
    AvailableQuantity
    Type
    Cardinal
    Description

    Remaining quantity currently available.

    Declaration

    property AvailableQuantity: Cardinal read GetAvailableQuantity;

    Published SDK declaration languages: Pascal.

  • Property name
    OnAdd
    Type
    ISheetChangeEvent
    Description

    Event fired when an item is added.

    Declaration

    property OnAdd: ISheetChangeEvent read GetOnAdd;

    Published SDK declaration languages: Pascal.

  • Property name
    OnRemove
    Type
    ISheetChangeEvent
    Description

    Event fired when an item is removed.

    Declaration

    property OnRemove: ISheetChangeEvent read GetOnRemove;

    Published SDK declaration languages: Pascal.

  • Property name
    OnChange
    Type
    INotifyEvent
    Description

    Event fired when the object or collection changes.

    Declaration

    property OnChange: INotifyEvent read GetOnChange;

    Published SDK declaration languages: Pascal.

Methods

  • Method name
    CreateSheet()
    Type
    ISheet
    Description

    Create a new sheet instance.

    Declaration

    function CreateSheet(): ISheet; safecall;

    Published SDK declaration languages: Pascal, C++.

    Returns
    A new sheet interface instance.
  • Method name
    Add()
    Type
    procedure
    Description

    Add an item or handler.

    Declaration

    procedure Add(aSheet: ISheet); safecall;

    Published SDK declaration languages: Pascal, C++.

    Parameters
    aSheet
    Sheet instance being queried or modified.
  • Method name
    DeleteByIndex()
    Type
    procedure
    Description

    Delete the item at the specified zero-based index.

    Declaration

    procedure DeleteByIndex(aIndex: Cardinal); safecall;

    Published SDK declaration languages: Pascal, C++.

    Parameters
    aIndex
    Cardinal
    Zero-based position within a collection.
  • Method name
    DeleteById()
    Type
    procedure
    Description

    Delete the item with the specified TonCut identifier.

    Declaration

    procedure DeleteById(aId: Int64); safecall;

    Published SDK declaration languages: Pascal, C++.

    Parameters
    aId
    Int64
    TonCut object identifier.
  • Method name
    Remove()
    Type
    procedure
    Description

    Remove an item or handler.

    Declaration

    procedure Remove(const aSheet: ISheet); safecall;

    Published SDK declaration languages: Pascal, C++.

    Parameters
    aSheetconst
    Sheet instance being queried or modified.
  • Method name
    IndexOf()
    Type
    Integer
    Description

    Return the zero-based index of the matching item.

    Declaration

    function IndexOf(const aSheet: ISheet): Integer; overload; safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aSheetconst
    Sheet instance being queried or modified.
    Returns
    Zero-based index of the matching item, or -1 when no match exists.
  • Method name
    IndexOf()
    Type
    Integer
    Description

    Return the zero-based index of the matching item.

    Declaration

    function IndexOf(aId: Int64): Integer; overload; safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aId
    Int64
    TonCut object identifier.
    Returns
    Zero-based index of the matching item, or -1 when no match exists.
  • Method name
    IndexOf()
    Type
    Integer
    Description

    Return the zero-based index of the matching item.

    Declaration

    function IndexOf(const aOtherSheet: ISheet; aSkipId: Int64; var aRotated: Boolean): Integer; overload; safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aOtherSheetconst
    The other sheet interface instance to use.
    aSkipId
    Int64
    skip id value used to identify an object.
    aRotatedvar
    Boolean
    Boolean flag controlling rotated. Passed by reference and may be updated by the callee.
    Returns
    Zero-based index of the matching item, or -1 when no match exists.
  • Method name
    CreateDefect()
    Type
    ISheetDefect
    Description

    Create a new defect instance.

    Declaration

    function CreateDefect(): ISheetDefect; safecall;

    Published SDK declaration languages: Pascal, C++.

    Returns
    A new sheet defect interface instance.
  • Method name
    GetById()
    Type
    ISheet
    Description

    Return the item stored under the specified TonCut identifier.

    Declaration

    function GetById(aId: Int64): ISheet; safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aId
    Int64
    TonCut object identifier.
    Returns
    The matching sheet interface instance.
  • Method name
    CalcMaxLength()
    Type
    Cardinal
    Description

    Calculate max length.

    Declaration

    function CalcMaxLength(): Cardinal; safecall;

    Published SDK declaration languages: Pascal.

    Returns
    The calculated max length value.
  • Method name
    BeginUpdate()
    Type
    procedure
    Description

    Start a batched update so change notifications can be delayed.

    Declaration

    procedure BeginUpdate(); safecall;

    Published SDK declaration languages: Pascal.

  • Method name
    EndUpdate()
    Type
    procedure
    Description

    Finish a batched update and allow deferred notifications to resume.

    Declaration

    procedure EndUpdate(); safecall;

    Published SDK declaration languages: Pascal.

  • Method name
    IsUpdating()
    Type
    Boolean
    Description

    Report whether the interface is currently inside an update batch.

    Declaration

    function IsUpdating(): Boolean; safecall;

    Published SDK declaration languages: Pascal.

    Returns
    Returns true while the interface is inside a BeginUpdate / EndUpdate batch.
  • Method name
    Reload()
    Type
    procedure
    Description

    Reload the underlying data from the host or storage layer.

    Declaration

    procedure Reload(); safecall;

    Published SDK declaration languages: Pascal.


ISheetChangeEventHandler

Callback sink consumed by the matching change-event interface.

Source: SDK/include/pascal/uISheetChangeEvent.pas

Methods

  • Method name
    Invoke()
    Type
    procedure
    Description

    Handle the event callback when the owning event interface invokes it.

    Declaration

    procedure Invoke(aSender: IUnknown; aSheet: ISheet; aIndex: Integer); safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aSender
    IUnknown
    Object that raised the event.
    aSheet
    Sheet instance being queried or modified.
    aIndex
    Integer
    Zero-based position within a collection.

ISheetChangeEvent

Event interface with Add, Remove, and Invoke hooks for collection or entity change notifications.

Source: SDK/include/pascal/uISheetChangeEvent.pas

Methods

  • Method name
    Add()
    Type
    procedure
    Description

    Add an item or handler.

    Declaration

    procedure Add(aHandler: ISheetChangeEventHandler); safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aHandler
    The handler interface instance to use.
  • Method name
    Remove()
    Type
    procedure
    Description

    Remove an item or handler.

    Declaration

    procedure Remove(aHandler: ISheetChangeEventHandler); safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aHandler
    The handler interface instance to use.
  • Method name
    Invoke()
    Type
    procedure
    Description

    Raise the typed change event for the current payload.

    Declaration

    procedure Invoke(aSender: IUnknown; aSheet: ISheet; aIndex: Integer); safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aSender
    IUnknown
    Object that raised the event.
    aSheet
    Event payload field for sheet.
    aIndex
    Integer
    Event payload field for index.

ISheetDefect

Rectangular region tracked on a stock sheet, either a defect (damaged material) or a hole (no material), depending on the collection that holds it.

Source: SDK/include/pascal/uISheetDefect.pas

Properties

  • Property name
    PosX
    Type
    Cardinal
    Description

    X position of the object within solution space.

    Declaration

    property PosX: Cardinal read GetPosX write SetPosX;

    Published SDK declaration languages: Pascal.

  • Property name
    PosY
    Type
    Cardinal
    Description

    Y position of the object within solution space.

    Declaration

    property PosY: Cardinal read GetPosY write SetPosY;

    Published SDK declaration languages: Pascal.

  • Property name
    Length
    Type
    Cardinal
    Description

    Length value stored on the object.

    Declaration

    property Length: Cardinal read GetLength write SetLength;

    Published SDK declaration languages: Pascal.

  • Property name
    Width
    Type
    Cardinal
    Description

    Width value stored on the object.

    Declaration

    property Width: Cardinal read GetWidth write SetWidth;

    Published SDK declaration languages: Pascal.

  • Property name
    OnChange
    Type
    INotifyEvent
    Description

    Event fired when the object or collection changes.

    Declaration

    property OnChange: INotifyEvent read GetOnChange;

    Published SDK declaration languages: Pascal.

Methods

  • Method name
    Assign()
    Type
    procedure
    Description

    Copy values from another object of the same type.

    Declaration

    procedure Assign(const aSheetDefect: ISheetDefect); safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aSheetDefectconst
    The sheet defect interface instance to use.
  • Method name
    BeginUpdate()
    Type
    procedure
    Description

    Start a batched update so change notifications can be delayed.

    Declaration

    procedure BeginUpdate(); safecall;

    Published SDK declaration languages: Pascal.

  • Method name
    EndUpdate()
    Type
    procedure
    Description

    Finish a batched update and allow deferred notifications to resume.

    Declaration

    procedure EndUpdate(); safecall;

    Published SDK declaration languages: Pascal.


ISheetDefects

Collection of rectangular regions. The type is shared by ISheet.Defects (damaged material) and by Holes (no material), and the meaning differs between them.

Source: SDK/include/pascal/uISheetDefects.pas

Properties

  • Property name
    Count
    Type
    Integer
    Description

    Number of items currently exposed by the interface.

    Declaration

    property Count: Integer read GetCount;

    Published SDK declaration languages: Pascal.

  • Property name
    Items
    Type
    ISheetDefect
    Description

    Indexed property used to read one item from the collection.

    Declaration

    property Items[aIndex: Cardinal]: ISheetDefect read GetByIndex; default;

    Published SDK declaration languages: Pascal.

    Index Parameters
    aIndex
    Cardinal
    Zero-based position within a collection.
    Value
    The collection item located at the supplied index.
  • Property name
    OnAdd
    Type
    ISheetDefectChangeEvent
    Description

    Event fired when an item is added.

    Declaration

    property OnAdd: ISheetDefectChangeEvent read GetOnAdd;

    Published SDK declaration languages: Pascal.

  • Property name
    OnRemove
    Type
    ISheetDefectChangeEvent
    Description

    Event fired when an item is removed.

    Declaration

    property OnRemove: ISheetDefectChangeEvent read GetOnRemove;

    Published SDK declaration languages: Pascal.

Methods

  • Method name
    Assign()
    Type
    procedure
    Description

    Copy values from another object of the same type.

    Declaration

    procedure Assign(const aOther: ISheetDefects); safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aOtherconst
    Source object whose values should be copied.
  • Method name
    Clear()
    Type
    procedure
    Description

    Remove all items from the collection.

    Declaration

    procedure Clear(); safecall;

    Published SDK declaration languages: Pascal.

  • Method name
    Add()
    Type
    procedure
    Description

    Add an item or handler.

    Declaration

    procedure Add(aSheetDefect: ISheetDefect); safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aSheetDefect
    The sheet defect interface instance to use.
  • Method name
    DeleteByIndex()
    Type
    procedure
    Description

    Delete the item at the specified zero-based index.

    Declaration

    procedure DeleteByIndex(aIndex: Cardinal); safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aIndex
    Cardinal
    Zero-based position within a collection.
  • Method name
    Remove()
    Type
    procedure
    Description

    Remove an item or handler.

    Declaration

    procedure Remove(const aSheetDefect: ISheetDefect); safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aSheetDefectconst
    The sheet defect interface instance to use.
  • Method name
    IndexOf()
    Type
    Integer
    Description

    Return the zero-based index of the matching item.

    Declaration

    function IndexOf(const aSheetDefect: ISheetDefect): Integer; overload; safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aSheetDefectconst
    The sheet defect interface instance to use.
    Returns
    Zero-based index of the matching item, or -1 when no match exists.
  • Method name
    Find()
    Type
    ISheetDefect
    Description

    Find an item matching the supplied criteria.

    Declaration

    function Find(aPosX: Cardinal; aPosY: Cardinal; aLength: Cardinal; aWidth: Cardinal): ISheetDefect; overload; safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aPosX
    Cardinal
    X position in solution space.
    aPosY
    Cardinal
    Y position in solution space.
    aLength
    Cardinal
    Length value in TonCut units.
    aWidth
    Cardinal
    Width value in TonCut units.
    Returns
    The matching sheet defect interface instance, or null when not found.

ISheetDefectChangeEventHandler

Callback sink consumed by the matching change-event interface.

Source: SDK/include/pascal/uISheetDefectChangeEvent.pas

Methods

  • Method name
    Invoke()
    Type
    procedure
    Description

    Handle the event callback when the owning event interface invokes it.

    Declaration

    procedure Invoke(aSender: IUnknown; aSheetDefect: ISheetDefect; aIndex: Integer); safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aSender
    IUnknown
    Object that raised the event.
    aSheetDefect
    The sheet defect interface instance to use.
    aIndex
    Integer
    Zero-based position within a collection.

ISheetDefectChangeEvent

Event interface with Add, Remove, and Invoke hooks for collection or entity change notifications.

Source: SDK/include/pascal/uISheetDefectChangeEvent.pas

Methods

  • Method name
    Add()
    Type
    procedure
    Description

    Add an item or handler.

    Declaration

    procedure Add(aHandler: ISheetDefectChangeEventHandler); safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aHandler
    The handler interface instance to use.
  • Method name
    Remove()
    Type
    procedure
    Description

    Remove an item or handler.

    Declaration

    procedure Remove(aHandler: ISheetDefectChangeEventHandler); safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aHandler
    The handler interface instance to use.
  • Method name
    Invoke()
    Type
    procedure
    Description

    Raise the typed change event for the current payload.

    Declaration

    procedure Invoke(aSender: IUnknown; aSheetDefect: ISheetDefect; aIndex: Integer); safecall;

    Published SDK declaration languages: Pascal.

    Parameters
    aSender
    IUnknown
    Object that raised the event.
    aSheetDefect
    Event payload field for sheet defect.
    aIndex
    Integer
    Event payload field for index.

Was this page helpful?