insertPiece Method

Summary

Inserts a Piece before/after the given neighbor.

Syntax

TypeScript
    insertPiece(neighbor: Piece | null, piece: Piece, after: boolean): void; 

Parameters

neighbor

Neighbor Piece within the PieceStructure for insertion (can only be null if there are no pieces within the PieceStructure).

piece

The Piece to insert.

after

Pass as true to insert after neighbor; false to insert before.

Remarks

This would be used to moving a Piece object to a specific position in the document structure.

Requirements

Target Platforms

See Also

PieceStructure Object

PieceStructure Members

Leadtools.Document.Editor Namespace

Help Version 22.0.2023.1.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Editor Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.