|
|
|
|
|
- Properties specific to docStyle variables
docStyle (Variable type) In french: docStyle
The docStyle type is used to define the advanced characteristics of a style belonging to a document, a paragraph or a document fragment. The characteristics of this style are returned by several WLanguage properties. CAUTION: This type must not be used directly. It must only be used via Document variables, which contain an array of styles associated with the document.. MonDoc is Document <- TT_SansNom1
Frag is docFragment <- MonDoc[TT_SansNom1.Curseur to TT_SansNom1.FinCurseur]
Frag.MiseEnForme.PoliceGras = True
MonChampDoc is Control
MonDoc is Document = MonChampDoc
FOR EACH UnStyleDuDoc OF MonDoc.Style
Trace(UnStyleDuDoc.StyleID)
END
MonChampDoc is Control = {"MonChampTT", indControl}
MonDoc is Document = MonChampDoc
IF MonDoc.Style["Titre1"] = Null THEN
MonDocContenantLesStyles is Document = "c:\MonDocAvecMesStyles.docx"
StyleTitre1 is docStyle <- MonDocContenantLesStyles.Style["Titre1"]
IF StyleTitre1 <> Null THEN
Add(MonDoc.Style, StyleTitre1)
END
END
StyleTitre1PourSelection is docStyle <- MonDoc.Style["Titre1"]
IF StyleTitre1PourSelection <> Null THEN
f is docFragment(MonChampDoc.Valeur, MonChampDoc.Curseur, MonChampDoc.LongueurSélection)
f.StyleID = StyleTitre1PourSelection.Identifier
END
Properties Properties specific to docStyle variables The following properties can be used to handle a style: | | | Property name | Type used | Effect |
---|
Alias | Character string | Display name of style. This name is used if the Name property does not correspond to a display name. If several names are available, they are separated by a comma (","). This property is read-only. | ByDefault | Boolean | - True if the style is the default style,
- False otherwise.
| DisplayPriority | Integer | Priority order when displaying styles in an interface (GUI). This priority order is an ascending order. | Invisible | Boolean | - True if the style must be hidden to the user,
- False otherwise.
If the Invisible property is set to True, this style will be reserved for internal use (e.g., parent style not available in the UI). This property is read-only. | InvisibleIfNotUsed | Boolean | - True if the style must be hidden to the user except if it is already used in the document,
- False otherwise.
This property is read-only. | Name | Character string | Preset name of style or display name of style. This property is read-only. | StyleID | Character string | Unique identifier of style in the document. This property is read-only. | StyleIDLinked | Character string | Identifier of linked style (Paragraph style or Character style). If the style is a paragraph style, this property returns the identifier of the associated character type. This property is read-only. | StyleIDParent | Character string | Identifier of parent style (which means on which the current style is based). This property is read-only. | Type | Integer constant | Type of style: - docstyleCharacter: Character style. This style is applied to a text section.
- docstyleNumbering: Numbering style.
- docstyleParagraph: Paragraph style. This style is applied to an entire paragraph.
- docstyleArray: Array style.
This property is read-only. Note: changing the style of a paragraph or fragment automatically applies the linked paragraph style and character style, if any.. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|