Previous Document Next Document

Object Model Reference : Classes : S : StyleSheet : Methods : StyleSheet.CreateStyleFromTextRange


StyleSheet.CreateStyleFromTextRange

Function CreateStyleFromTextRange(TextRange As TextRange, Category As String, [Name As String], [ReplaceExisting As Boolean = False]) As Styles

Description

Member of StyleSheet

The CreateStyleFromTextRange method creates styles from a range of text characters.

Parameter
Description
TextRange
Specifies a text range
Category
Specifies the category of the new style
Name
Specifies the name of the new style. This parameter is optional.
ReplaceExisting
Specifies whether to replace an existing style that has the same name. This parameter is optional.

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.