An object style.
Go to Property Listing | Method Listing
duplicate, extractLabel, getElements, insertLabel, move, remove, toSource, toSpecifier
AnchoredObjectSetting, ArrowHead, BaselineFrameGridOption, Boolean, ContentTransparencySetting, CornerOptions, EndCap, EndJoin, FillTransparencySetting, FrameFittingOption, Number, Object, ObjectStyle, ObjectStyleContentEffectsCategorySettings, ObjectStyleFillEffectsCategorySettings, ObjectStyleObjectEffectsCategorySettings, ObjectStyleStrokeEffectsCategorySettings, ParagraphStyle, StoryPreference, String, StrokeAlignment, StrokeCornerAdjustment, StrokeStyle, StrokeTransparencySetting, Swatch, TextFramePreference, TextWrapPreference, TransparencySetting,
BaselineFrameGridOption, Boolean, FrameFittingOption, StoryPreference, TextFramePreference, TextWrapPreference
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
read/write |
Anchored object settings. |
||
|
read/write |
The paragraph style applied to the text. Can also accept: String. |
||
|
read/write |
If true, applies paragraph styles using Next Paragraph Style settings, beginning with the Next Paragraph Style defined in the paragraph style associated with the object style (if any). |
||
|
read/write |
The style that this style is based on. Can return: ObjectStyle or String. |
||
|
read/write |
Baseline frame grid option settings. |
||
|
readonly |
The content effects enabling settings. |
||
|
readonly |
Transparency settings for the content of the ObjectStyle. |
||
|
read/write |
The shape to apply to corner points in a path. Note: corner option differs from end join in that you can set a radius for a corner option, whereas the rounded or beveled effect of an end join depends upon the stroke weight. |
||
|
read/write |
The radius in measurement units of the corner effect. |
||
|
read/write |
If true, the object style will apply an anchored object setting. |
||
|
read/write |
If true, the object style will apply a fill. |
||
|
read/write |
If true, the object style will apply frame fitting options. |
||
|
read/write |
If true, the object style will apply a paragraph style. |
||
|
read/write |
If true, the object style will apply story options. |
||
|
read/write |
If true, the object style will apply a stroke. |
||
|
read/write |
If true, the object style will apply stroke options and corner options. |
||
|
read/write |
If true, the object style will apply baseline text frame options. |
||
|
read/write |
If true, the object style will apply general text frame options. |
||
|
read/write |
If true, the object style will apply text wrap, contour, and non-printing settings. |
||
|
read/write |
The end shape of an open path. |
||
|
read/write |
The corner join applied to the ObjectStyle. |
||
|
read/write |
The swatch (color, gradient, tint, or mixed ink) applied to the fill of the ObjectStyle. . Can also accept: String. |
||
|
readonly |
The fill effects enabling settings. |
||
|
Number (range 0 - 100) |
read/write |
The percent of tint to use in the ObjectStyle's fill color. (To specify a tint percent, use a number in the range of 0 to 100; to use the inherited or overridden value, use -1.) |
|
|
readonly |
Transparency settings for the fill applied to the ObjectStyle. |
||
|
read/write |
The frame fitting option to apply to placed or pasted content. Can be applied to a frame, object style, or document or to the application. |
||
|
read/write |
The swatch (color, gradient, tint, or mixed ink) applied to the gap of a dashed, dotted, or striped stroke. For information, see stroke type. |
||
|
Number (range 0 - 100) |
read/write |
The tint as a percentage of the gap color. (To specify a tint percent, use a number in the range of 0 to 100; to use the inherited or overridden value, use -1.) |
|
|
read/write |
The angle of a linear gradient applied to the fill of the ObjectStyle. (Range: -180 to 180) |
||
|
read/write |
The angle of a linear gradient applied to the stroke of the ObjectStyle. (Range: -180 to 180) |
||
|
readonly |
The unique ID of the ObjectStyle. |
||
|
readonly |
The index of the ObjectStyle within its containing object. |
||
|
readonly |
Returns true if the object specifier resolves to valid objects. |
||
|
read/write |
A property that can be set to any string. |
||
|
read/write |
The arrowhead applied to the start of the path. |
||
|
Number (range 1 - 500) |
read/write |
The limit of the ratio of stroke width to miter length before a miter (pointed) join becomes a bevel (squared-off) join. |
|
|
read/write |
The name of the ObjectStyle. |
||
|
read/write |
If true, the ObjectStyle does not print. |
||
|
readonly |
The object effects enabling settings. |
||
|
read/write |
If true, the ObjectStyle's fill color overprints any underlying objects. If false, the fill color knocks out the underlying colors. |
||
|
read/write |
If true, the gap color overprints any underlying colors. If false, the gap color knocks out the underlying colors. |
||
|
read/write |
If true, the ObjectStyle's stroke color overprints any underlying objects. If false, the stroke color knocks out the underlying colors. |
||
|
readonly |
The parent of the ObjectStyle (a Document, Application or ObjectStyleGroup). |
||
|
read/write |
A property that allows setting of several properties at the same time. |
||
|
read/write |
The arrowhead applied to the end of the path. |
||
|
read/write |
Story preference settings. |
||
|
read/write |
The stroke alignment applied to the ObjectStyle. |
||
|
read/write |
The swatch (color, gradient, tint, or mixed ink) applied to the stroke of the ObjectStyle. Can also accept: String. |
||
|
read/write |
The corner adjustment applied to the ObjectStyle. |
||
|
read/write |
The dash and gap measurements that define the pattern of a custom dashed line. Define up to six values (in points) in the format [dash1, gap1, dash2, gap2, dash3, gap3]. |
||
|
readonly |
The stroke effects enabling settings. |
||
|
Number (range 0 - 100) |
read/write |
The percent of tint to use in object's stroke color. (To specify a tint percent, use a number in the range of 0 to 100; to use the inherited or overridden value, use -1.) |
|
|
readonly |
Transparency settings for the stroke. |
||
|
read/write |
The name of the stroke style to apply. Can also accept: String. |
||
|
read/write |
The weight (in points) to apply to the ObjectStyle's stroke. |
||
|
read/write |
Text frame preference settings. |
||
|
read/write |
The text wrap preference properties that define the default formatting for wrapping text around objects. |
||
|
readonly |
Transparency settings. |
ObjectStyle duplicate ()
Duplicates the ObjectStyle.
String extractLabel (key:String)
Gets the label value associated with the specified key.
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
The key. |
ObjectStyle getElements ()
Resolves the object specifier, creating an array of object references.
undefined insertLabel (key:String, value:String)
Sets the label to the value associated with the specified key.
ObjectStyle move (to:LocationOptions, reference:Varies Document ObjectStyle ObjectStyleGroup Application)
Moves the ObjectStyle to the specified location.
|
Parameter |
Type |
Description |
|---|---|---|
|
to |
The new location relative to the reference object or within the container object. |
|
|
reference |
The reference object. Note: Required when the to parameter is before or after. Can accept: ObjectStyle, ObjectStyleGroup, Document or Application. (Optional) |
undefined remove (replacingWith:ObjectStyle)
Deletes the style.
|
Parameter |
Type |
Description |
|---|---|---|
|
replacingWith |
The style to apply in place of the deleted style. (Optional) |
String toSource ()
Generates a string which, if executed, will return the ObjectStyle.
String toSpecifier ()
Retrieves the object specifier.