formatRange Method

Summary

Formats all pieces in an EditRange with the provided attribute data.

Syntax

TypeScript
    formatRange(range: EditRange, attrData: AttributeData, options?: EngineOptions, cb?: (piece: Piece, pieceAtt: Attribute | undefined, newAtt: Attribute) => Attribute): void; 

Parameters

range

The range to format over.

attrData

The attribute data to format with.

options

The options to use when executing this command.

cb

Callback function to modify the new Attribute before it is applied to the piece.

Requirements

Target Platforms

See Also

EditableContent Object

EditableContent Members

Leadtools.Document.Editor Namespace

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 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.