ObjectStyle

An object style.

ObjectStyle Properties

Property Type Access Description
AnchoredObjectSettings AnchoredObjectSetting r/w Anchored object settings for the object.
AppliedParagraphStyle ParagraphStyle, String r/w The applied paragraph style.
ApplyNextParagraphStyle Boolean r/w When applying the paragraph style use next paragraph style value.
BasedOn Object, String r/w The object style this style is based on.
BaselineFrameGridOptions BaselineFrameGridOption r/w Baseline frame grid options.
BlendMode idBlendMode enumeration r/w The blending mode applied to the object.
CornerEffect idCornerEffects enumeration r/w The corner effect applied to the object.
CornerRadius Double r/w The corner effect radius applied to the object.
DefaultFrameGridObjectStyle Object, String r/w The default frame grid object style.
DefaultObjectStyle Object, String r/w The default object style.
DefaultTextObjectStyle Object, String r/w The default text object style.
EnableAnchoredObjectOptions Boolean r/w Enable the anchored object options category of object style.
EnableDropshadowAndFeather Boolean r/w Enable the dropshadow and feather category of object style.
EnableFill Boolean r/w Enable the fill category of object style.
EnableParagraphStyle Boolean r/w Enable the paragraph style category of object style.
EnableStoryOptions Boolean r/w Enable the story options category of object style.
EnableStroke Boolean r/w Enable the stroke category of object style.
EnableStrokeAndCornerEffects Boolean r/w Enable the stroke and corner effects category of object style.
EnableTextFrameBaselineOptions Boolean r/w Enable the text frame baseline options category of object style.
EnableTextFrameGeneralOptions Boolean r/w Enable the text frame general options category of object style.
EnableTextWrapAndOthers Boolean r/w Enable the text wrap and others category of object style.
EnableTransparency Boolean r/w Enable the transparency category of object style.
EndCap idEndCap enumeration r/w The end cap applied to the stroke of the object.
EndJoin idEndJoin enumeration r/w The end join applied to the stroke of the object.
FeatherCornerType idFeatherCornerType enumeration r/w The type of feathering applied to the object.
FeatherMode idFeatherMode enumeration r/w The feathering mode applied to the object.
FeatherNoise Double (0 – 100) r/w The amount of noise applied to the feathering applied to the object.
FeatherWidth Unit (Double or String) (0 – 1000 points) r/w The width of the feathering applied to the object.
FillColor Swatch, String r/w The fill of the object.
FillTint Double r/w The tint percentage applied to the fill of the object (-1 indicates 100%).
GapColor Swatch r/w The gap color applied to the stroke of the object.
GapTint Double r/w The tint applied to the gap color of the object (-1 indicates 100%).
GradientFillAngle Double r/w The angle of the gradient applied to the fill of the object.
GradientStrokeAngle Double r/w The angle of the gradient applied to the stroke of the object.
Id Long read A unique number identifying the object.
Index Long read Index of the object within its parent object.
IsolateBlending Boolean r/w If true, the object will blend in isolation.
KnockoutGroup Boolean r/w If true, the object will blend as a knockout group.
Label String r/w A label that can be set to any string.
LeftLineEnd idArrowHead enumeration r/w A shape, such as an arrowhead, applied to the left end of the paths of the object. This shape will only appear on open paths.
MiterLimit Double r/w The point at which the rendering of a corner point switches from a miter join to a bevel join.
Name String r/w The name of the object.
Nonprinting Boolean r/w If true, the object is non-printing.
Opacity Double (0 – 100) r/w The opacity of the object.
OverprintFill Boolean r/w If true, the fill of the object will overprint.
OverprintGap Boolean r/w If true, the gap color applied to the stroke of the object will overprint.
OverprintStroke Boolean r/w If true, the storke of the object will overprint.
Parent Object read The parent of the object.
RightLineEnd idArrowHead enumeration r/w A shape, such as an arrowhead, applied the right end of the paths of the object. This shape will only appear on open paths.
ShadowBlendMode idBlendMode enumeration r/w The blending mode applied to the drop shadow.
ShadowBlurRadius Unit (Double or String) (0 – 144 points) r/w The blur radius of the the drop shadow.
ShadowColor Swatch r/w The color of the drop shadow.
ShadowMode idShadowMode enumeration r/w The shadow mode of the drop shadow.
ShadowNoise Double (0 – 100) r/w The amount of noise applied to the drop shadow.
ShadowOpacity Double (0 – 100) r/w The opacity of the drop shadow.
ShadowSpread Double (0 – 100) r/w The distance to spread the drop shadow before applying blurring.
ShadowXOffset Unit (Double or String) (-1000 – 1000 points) r/w The horizontal offset of the drop shadow from the object.
ShadowYOffset Unit (Double or String) (-1000 – 1000 points) r/w The vertical offset of the drop shadow from the object.
StoryPreferences StoryPreference r/w Story preferences.
StrokeAlignment idStrokeAlignment enumeration r/w The stroke alignment of the object.
StrokeColor Swatch, String r/w The stroke color of the object.
StrokeCornerAdjustment idStrokeCornerAdjustment enumeration r/w The adjustment method to apply to the corners of a dashed stroke.
StrokeDashAndGap Array of Units (Doubles or Strings) r/w The dash and gap settings of a dashed stroke. A list of up to 6 values.
StrokeTint Double r/w The tint percentage applied to the stroke (-1 indicates 100%).
StrokeType StrokeStyle r/w The stroke type.
StrokeWeight Unit (Double or String) r/w The stroke weight (thickness) of the stroke.
TextFramePreferences TextFramePreference r/w Text frame preferences.
TextWrapPreferences TextWrapPreference r/w Text wrap preferences for the object.

ObjectStyle Methods

Method Returns Description
Delete Nothing Deletes the object.
Duplicate Object Duplicates the object.
ExtractLabel String Gets the content of the label associated with the specified key (name).
InsertLabel Nothing Sets the content of the label associated with the specified key (name), creating the label if it does not already exist.
Move Object Moves the object.

Leave a Comment

Previous post:

Next post: