Edit

Share via


Word.SelectionDeleteOptions interface

Represents the options for the Selection.delete method.

Remarks

[ API set: WordApiDesktop 1.4 ]

Properties

count

If provided, specifies the number of units to be deleted. To delete units after the selection, collapse the selection and use a positive number. To delete units before the selection, collapse the selection and use a negative number. The default value is 1.

unit

If provided, specifies the unit by which the collapsed selection is to be deleted. The default value is character.

Property Details

count

If provided, specifies the number of units to be deleted. To delete units after the selection, collapse the selection and use a positive number. To delete units before the selection, collapse the selection and use a negative number. The default value is 1.

count?: number;

Property Value

number

Remarks

[ API set: WordApiDesktop 1.4 ]

unit

If provided, specifies the unit by which the collapsed selection is to be deleted. The default value is character.

unit?: Word.OperationUnit | "Character" | "Word" | "Sentence" | "Paragraph" | "Line" | "Story" | "Screen" | "Section" | "Column" | "Row" | "Window" | "Cell" | "CharacterFormat" | "ParagraphFormat" | "Table" | "Item";

Property Value

Word.OperationUnit | "Character" | "Word" | "Sentence" | "Paragraph" | "Line" | "Story" | "Screen" | "Section" | "Column" | "Row" | "Window" | "Cell" | "CharacterFormat" | "ParagraphFormat" | "Table" | "Item"

Remarks

[ API set: WordApiDesktop 1.4 ]