Edit

Share via


Word.ThreeDimensionalFormat class

Represents a shape's three-dimensional formatting.

Extends

Remarks

[ API set: WordApiDesktop 1.3 ]

Properties

bevelBottomDepth

Specifies the depth of the bottom bevel.

bevelBottomInset

Specifies the inset size for the bottom bevel.

bevelBottomType

Specifies a BevelType value that represents the bevel type for the bottom bevel.

bevelTopDepth

Specifies the depth of the top bevel.

bevelTopInset

Specifies the inset size for the top bevel.

bevelTopType

Specifies a BevelType value that represents the bevel type for the top bevel.

context

The request context associated with the object. This connects the add-in's process to the Office host application's process.

contourColor

Returns a ColorFormat object that represents color of the contour of a shape.

contourWidth

Specifies the width of the contour of a shape.

depth

Specifies the depth of the shape's extrusion.

extrusionColor

Returns a ColorFormat object that represents the color of the shape's extrusion.

extrusionColorType

Specifies whether the extrusion color is based on the extruded shape's fill (the front face of the extrusion) and automatically changes when the shape's fill changes, or whether the extrusion color is independent of the shape's fill.

fieldOfView

Specifies the amount of perspective for a shape.

isPerspective

Specifies true if the extrusion appears in perspective — that is, if the walls of the extrusion narrow toward a vanishing point, false if the extrusion is a parallel, or orthographic, projection — that is, if the walls don't narrow toward a vanishing point.

isVisible

Specifies if the specified object, or the formatting applied to it, is visible.

lightAngle

Specifies the angle of the lighting.

presetCamera

Returns a PresetCamera value that represents the camera presets.

presetExtrusionDirection

Returns the direction taken by the extrusion's sweep path leading away from the extruded shape (the front face of the extrusion).

presetLighting

Specifies a LightRigType value that represents the lighting preset.

presetLightingDirection

Specifies the position of the light source relative to the extrusion.

presetLightingSoftness

Specifies the intensity of the extrusion lighting.

presetMaterial

Specifies the extrusion surface material.

presetThreeDimensionalFormat

Returns the preset extrusion format.

projectText

Specifies whether text on a shape rotates with shape. true rotates the text.

rotationX

Specifies the rotation of the extruded shape around the x-axis in degrees.

rotationY

Specifies the rotation of the extruded shape around the y-axis in degrees.

rotationZ

Specifies the z-axis rotation of the camera.

z

Specifies the position on the z-axis for the shape.

Methods

incrementRotationHorizontal(increment)

Horizontally rotates a shape on the x-axis. The number of degrees to rotate.

incrementRotationVertical(increment)

Vertically rotates a shape on the y-axis. The number of degrees to rotate.

incrementRotationX(increment)

Changes the rotation around the x-axis. The number of degrees to rotate.

incrementRotationY(increment)

Changes the rotation around the y-axis. The number of degrees to rotate.

incrementRotationZ(increment)

Rotates a shape on the z-axis. The number of degrees to rotate.

load(options)

Queues up a command to load the specified properties of the object. You must call context.sync() before reading the properties.

load(propertyNames)

Queues up a command to load the specified properties of the object. You must call context.sync() before reading the properties.

load(propertyNamesAndPaths)

Queues up a command to load the specified properties of the object. You must call context.sync() before reading the properties.

resetRotation()

Resets the extrusion rotation around the x-axis, y-axis, and z-axis to 0.

set(properties, options)

Sets multiple properties of an object at the same time. You can pass either a plain object with the appropriate properties, or another API object of the same type.

set(properties)

Sets multiple properties on the object at the same time, based on an existing loaded object.

setExtrusionDirection(presetExtrusionDirection)

Sets the direction of the extrusion's sweep path.

setExtrusionDirection(presetExtrusionDirection)

Sets the direction of the extrusion's sweep path.

setPresetCamera(presetCamera)

Sets the camera preset for the shape. The preset camera type.

setPresetCamera(presetCamera)

Sets the camera preset for the shape. The preset camera type.

setThreeDimensionalFormat(presetThreeDimensionalFormat)

Sets the preset extrusion format. The preset format.

setThreeDimensionalFormat(presetThreeDimensionalFormat)

Sets the preset extrusion format. The preset format.

toJSON()

Overrides the JavaScript toJSON() method in order to provide more useful output when an API object is passed to JSON.stringify(). (JSON.stringify, in turn, calls the toJSON method of the object that's passed to it.) Whereas the original Word.ThreeDimensionalFormat object is an API object, the toJSON method returns a plain JavaScript object (typed as Word.Interfaces.ThreeDimensionalFormatData) that contains shallow copies of any loaded child properties from the original object.

track()

Track the object for automatic adjustment based on surrounding changes in the document. This call is a shorthand for context.trackedObjects.add(thisObject). If you're using this object across .sync calls and outside the sequential execution of a ".run" batch, and get an "InvalidObjectPath" error when setting a property or invoking a method on the object, you need to add the object to the tracked object collection when the object was first created. If this object is part of a collection, you should also track the parent collection.

untrack()

Release the memory associated with this object, if it has previously been tracked. This call is shorthand for context.trackedObjects.remove(thisObject). Having many tracked objects slows down the host application, so please remember to free any objects you add, once you're done using them. You'll need to call context.sync() before the memory release takes effect.

Property Details

bevelBottomDepth

Specifies the depth of the bottom bevel.

bevelBottomDepth: number;

Property Value

number

Remarks

[ API set: WordApiDesktop 1.3 ]

bevelBottomInset

Specifies the inset size for the bottom bevel.

bevelBottomInset: number;

Property Value

number

Remarks

[ API set: WordApiDesktop 1.3 ]

bevelBottomType

Specifies a BevelType value that represents the bevel type for the bottom bevel.

bevelBottomType: Word.BevelType | "mixed" | "none" | "relaxedInset" | "circle" | "slope" | "cross" | "angle" | "softRound" | "convex" | "coolSlant" | "divot" | "riblet" | "hardEdge" | "artDeco";

Property Value

Word.BevelType | "mixed" | "none" | "relaxedInset" | "circle" | "slope" | "cross" | "angle" | "softRound" | "convex" | "coolSlant" | "divot" | "riblet" | "hardEdge" | "artDeco"

Remarks

[ API set: WordApiDesktop 1.3 ]

bevelTopDepth

Specifies the depth of the top bevel.

bevelTopDepth: number;

Property Value

number

Remarks

[ API set: WordApiDesktop 1.3 ]

bevelTopInset

Specifies the inset size for the top bevel.

bevelTopInset: number;

Property Value

number

Remarks

[ API set: WordApiDesktop 1.3 ]

bevelTopType

Specifies a BevelType value that represents the bevel type for the top bevel.

bevelTopType: Word.BevelType | "mixed" | "none" | "relaxedInset" | "circle" | "slope" | "cross" | "angle" | "softRound" | "convex" | "coolSlant" | "divot" | "riblet" | "hardEdge" | "artDeco";

Property Value

Word.BevelType | "mixed" | "none" | "relaxedInset" | "circle" | "slope" | "cross" | "angle" | "softRound" | "convex" | "coolSlant" | "divot" | "riblet" | "hardEdge" | "artDeco"

Remarks

[ API set: WordApiDesktop 1.3 ]

context

The request context associated with the object. This connects the add-in's process to the Office host application's process.

context: RequestContext;

Property Value

contourColor

Returns a ColorFormat object that represents color of the contour of a shape.

readonly contourColor: Word.ColorFormat;

Property Value

Remarks

[ API set: WordApiDesktop 1.3 ]

contourWidth

Specifies the width of the contour of a shape.

contourWidth: number;

Property Value

number

Remarks

[ API set: WordApiDesktop 1.3 ]

depth

Specifies the depth of the shape's extrusion.

depth: number;

Property Value

number

Remarks

[ API set: WordApiDesktop 1.3 ]

extrusionColor

Returns a ColorFormat object that represents the color of the shape's extrusion.

readonly extrusionColor: Word.ColorFormat;

Property Value

Remarks

[ API set: WordApiDesktop 1.3 ]

extrusionColorType

Specifies whether the extrusion color is based on the extruded shape's fill (the front face of the extrusion) and automatically changes when the shape's fill changes, or whether the extrusion color is independent of the shape's fill.

extrusionColorType: Word.ExtrusionColorType | "mixed" | "automatic" | "custom";

Property Value

Word.ExtrusionColorType | "mixed" | "automatic" | "custom"

Remarks

[ API set: WordApiDesktop 1.3 ]

fieldOfView

Specifies the amount of perspective for a shape.

fieldOfView: number;

Property Value

number

Remarks

[ API set: WordApiDesktop 1.3 ]

isPerspective

Specifies true if the extrusion appears in perspective — that is, if the walls of the extrusion narrow toward a vanishing point, false if the extrusion is a parallel, or orthographic, projection — that is, if the walls don't narrow toward a vanishing point.

isPerspective: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.3 ]

isVisible

Specifies if the specified object, or the formatting applied to it, is visible.

isVisible: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.3 ]

lightAngle

Specifies the angle of the lighting.

lightAngle: number;

Property Value

number

Remarks

[ API set: WordApiDesktop 1.3 ]

presetCamera

Returns a PresetCamera value that represents the camera presets.

readonly presetCamera: Word.PresetCamera | "Mixed" | "LegacyObliqueTopLeft" | "LegacyObliqueTop" | "LegacyObliqueTopRight" | "LegacyObliqueLeft" | "LegacyObliqueFront" | "LegacyObliqueRight" | "LegacyObliqueBottomLeft" | "LegacyObliqueBottom" | "LegacyObliqueBottomRight" | "LegacyPerspectiveTopLeft" | "LegacyPerspectiveTop" | "LegacyPerspectiveTopRight" | "LegacyPerspectiveLeft" | "LegacyPerspectiveFront" | "LegacyPerspectiveRight" | "LegacyPerspectiveBottomLeft" | "LegacyPerspectiveBottom" | "LegacyPerspectiveBottomRight" | "OrthographicFront" | "IsometricTopUp" | "IsometricTopDown" | "IsometricBottomUp" | "IsometricBottomDown" | "IsometricLeftUp" | "IsometricLeftDown" | "IsometricRightUp" | "IsometricRightDown" | "IsometricOffAxis1Left" | "IsometricOffAxis1Right" | "IsometricOffAxis1Top" | "IsometricOffAxis2Left" | "IsometricOffAxis2Right" | "IsometricOffAxis2Top" | "IsometricOffAxis3Left" | "IsometricOffAxis3Right" | "IsometricOffAxis3Bottom" | "IsometricOffAxis4Left" | "IsometricOffAxis4Right" | "IsometricOffAxis4Bottom" | "ObliqueTopLeft" | "ObliqueTop" | "ObliqueTopRight" | "ObliqueLeft" | "ObliqueRight" | "ObliqueBottomLeft" | "ObliqueBottom" | "ObliqueBottomRight" | "PerspectiveFront" | "PerspectiveLeft" | "PerspectiveRight" | "PerspectiveAbove" | "PerspectiveBelow" | "PerspectiveAboveLeftFacing" | "PerspectiveAboveRightFacing" | "PerspectiveContrastingLeftFacing" | "PerspectiveContrastingRightFacing" | "PerspectiveHeroicLeftFacing" | "PerspectiveHeroicRightFacing" | "PerspectiveHeroicExtremeLeftFacing" | "PerspectiveHeroicExtremeRightFacing" | "PerspectiveRelaxed" | "PerspectiveRelaxedModerately";

Property Value

Word.PresetCamera | "Mixed" | "LegacyObliqueTopLeft" | "LegacyObliqueTop" | "LegacyObliqueTopRight" | "LegacyObliqueLeft" | "LegacyObliqueFront" | "LegacyObliqueRight" | "LegacyObliqueBottomLeft" | "LegacyObliqueBottom" | "LegacyObliqueBottomRight" | "LegacyPerspectiveTopLeft" | "LegacyPerspectiveTop" | "LegacyPerspectiveTopRight" | "LegacyPerspectiveLeft" | "LegacyPerspectiveFront" | "LegacyPerspectiveRight" | "LegacyPerspectiveBottomLeft" | "LegacyPerspectiveBottom" | "LegacyPerspectiveBottomRight" | "OrthographicFront" | "IsometricTopUp" | "IsometricTopDown" | "IsometricBottomUp" | "IsometricBottomDown" | "IsometricLeftUp" | "IsometricLeftDown" | "IsometricRightUp" | "IsometricRightDown" | "IsometricOffAxis1Left" | "IsometricOffAxis1Right" | "IsometricOffAxis1Top" | "IsometricOffAxis2Left" | "IsometricOffAxis2Right" | "IsometricOffAxis2Top" | "IsometricOffAxis3Left" | "IsometricOffAxis3Right" | "IsometricOffAxis3Bottom" | "IsometricOffAxis4Left" | "IsometricOffAxis4Right" | "IsometricOffAxis4Bottom" | "ObliqueTopLeft" | "ObliqueTop" | "ObliqueTopRight" | "ObliqueLeft" | "ObliqueRight" | "ObliqueBottomLeft" | "ObliqueBottom" | "ObliqueBottomRight" | "PerspectiveFront" | "PerspectiveLeft" | "PerspectiveRight" | "PerspectiveAbove" | "PerspectiveBelow" | "PerspectiveAboveLeftFacing" | "PerspectiveAboveRightFacing" | "PerspectiveContrastingLeftFacing" | "PerspectiveContrastingRightFacing" | "PerspectiveHeroicLeftFacing" | "PerspectiveHeroicRightFacing" | "PerspectiveHeroicExtremeLeftFacing" | "PerspectiveHeroicExtremeRightFacing" | "PerspectiveRelaxed" | "PerspectiveRelaxedModerately"

Remarks

[ API set: WordApiDesktop 1.3 ]

presetExtrusionDirection

Returns the direction taken by the extrusion's sweep path leading away from the extruded shape (the front face of the extrusion).

readonly presetExtrusionDirection: Word.PresetExtrusionDirection | "Mixed" | "BottomRight" | "Bottom" | "BottomLeft" | "Right" | "None" | "Left" | "TopRight" | "Top" | "TopLeft";

Property Value

Word.PresetExtrusionDirection | "Mixed" | "BottomRight" | "Bottom" | "BottomLeft" | "Right" | "None" | "Left" | "TopRight" | "Top" | "TopLeft"

Remarks

[ API set: WordApiDesktop 1.3 ]

presetLighting

Specifies a LightRigType value that represents the lighting preset.

presetLighting: Word.LightRigType | "Mixed" | "LegacyFlat1" | "LegacyFlat2" | "LegacyFlat3" | "LegacyFlat4" | "LegacyNormal1" | "LegacyNormal2" | "LegacyNormal3" | "LegacyNormal4" | "LegacyHarsh1" | "LegacyHarsh2" | "LegacyHarsh3" | "LegacyHarsh4" | "ThreePoint" | "Balanced" | "Soft" | "Harsh" | "Flood" | "Contrasting" | "Morning" | "Sunrise" | "Sunset" | "Chilly" | "Freezing" | "Flat" | "TwoPoint" | "Glow" | "BrightRoom";

Property Value

Word.LightRigType | "Mixed" | "LegacyFlat1" | "LegacyFlat2" | "LegacyFlat3" | "LegacyFlat4" | "LegacyNormal1" | "LegacyNormal2" | "LegacyNormal3" | "LegacyNormal4" | "LegacyHarsh1" | "LegacyHarsh2" | "LegacyHarsh3" | "LegacyHarsh4" | "ThreePoint" | "Balanced" | "Soft" | "Harsh" | "Flood" | "Contrasting" | "Morning" | "Sunrise" | "Sunset" | "Chilly" | "Freezing" | "Flat" | "TwoPoint" | "Glow" | "BrightRoom"

Remarks

[ API set: WordApiDesktop 1.3 ]

presetLightingDirection

Specifies the position of the light source relative to the extrusion.

presetLightingDirection: Word.PresetLightingDirection | "Mixed" | "TopLeft" | "Top" | "TopRight" | "Left" | "None" | "Right" | "BottomLeft" | "Bottom" | "BottomRight";

Property Value

Word.PresetLightingDirection | "Mixed" | "TopLeft" | "Top" | "TopRight" | "Left" | "None" | "Right" | "BottomLeft" | "Bottom" | "BottomRight"

Remarks

[ API set: WordApiDesktop 1.3 ]

presetLightingSoftness

Specifies the intensity of the extrusion lighting.

presetLightingSoftness: Word.PresetLightingSoftness | "Mixed" | "Dim" | "Normal" | "Bright";

Property Value

Word.PresetLightingSoftness | "Mixed" | "Dim" | "Normal" | "Bright"

Remarks

[ API set: WordApiDesktop 1.3 ]

presetMaterial

Specifies the extrusion surface material.

presetMaterial: Word.PresetMaterial | "Mixed" | "Matte" | "Plastic" | "Metal" | "WireFrame" | "Matte2" | "Plastic2" | "Metal2" | "WarmMatte" | "TranslucentPowder" | "Powder" | "DarkEdge" | "SoftEdge" | "Clear" | "Flat" | "SoftMetal";

Property Value

Word.PresetMaterial | "Mixed" | "Matte" | "Plastic" | "Metal" | "WireFrame" | "Matte2" | "Plastic2" | "Metal2" | "WarmMatte" | "TranslucentPowder" | "Powder" | "DarkEdge" | "SoftEdge" | "Clear" | "Flat" | "SoftMetal"

Remarks

[ API set: WordApiDesktop 1.3 ]

presetThreeDimensionalFormat

Returns the preset extrusion format.

readonly presetThreeDimensionalFormat: Word.PresetThreeDimensionalFormat | "Mixed" | "Format1" | "Format2" | "Format3" | "Format4" | "Format5" | "Format6" | "Format7" | "Format8" | "Format9" | "Format10" | "Format11" | "Format12" | "Format13" | "Format14" | "Format15" | "Format16" | "Format17" | "Format18" | "Format19" | "Format20";

Property Value

Word.PresetThreeDimensionalFormat | "Mixed" | "Format1" | "Format2" | "Format3" | "Format4" | "Format5" | "Format6" | "Format7" | "Format8" | "Format9" | "Format10" | "Format11" | "Format12" | "Format13" | "Format14" | "Format15" | "Format16" | "Format17" | "Format18" | "Format19" | "Format20"

Remarks

[ API set: WordApiDesktop 1.3 ]

projectText

Specifies whether text on a shape rotates with shape. true rotates the text.

projectText: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.3 ]

rotationX

Specifies the rotation of the extruded shape around the x-axis in degrees.

rotationX: number;

Property Value

number

Remarks

[ API set: WordApiDesktop 1.3 ]

rotationY

Specifies the rotation of the extruded shape around the y-axis in degrees.

rotationY: number;

Property Value

number

Remarks

[ API set: WordApiDesktop 1.3 ]

rotationZ

Specifies the z-axis rotation of the camera.

rotationZ: number;

Property Value

number

Remarks

[ API set: WordApiDesktop 1.3 ]

z

Specifies the position on the z-axis for the shape.

z: number;

Property Value

number

Remarks

[ API set: WordApiDesktop 1.3 ]

Method Details

incrementRotationHorizontal(increment)

Horizontally rotates a shape on the x-axis. The number of degrees to rotate.

incrementRotationHorizontal(increment: number): void;

Parameters

increment

number

Returns

void

Remarks

[ API set: WordApiDesktop 1.3 ]

incrementRotationVertical(increment)

Vertically rotates a shape on the y-axis. The number of degrees to rotate.

incrementRotationVertical(increment: number): void;

Parameters

increment

number

Returns

void

Remarks

[ API set: WordApiDesktop 1.3 ]

incrementRotationX(increment)

Changes the rotation around the x-axis. The number of degrees to rotate.

incrementRotationX(increment: number): void;

Parameters

increment

number

Returns

void

Remarks

[ API set: WordApiDesktop 1.3 ]

incrementRotationY(increment)

Changes the rotation around the y-axis. The number of degrees to rotate.

incrementRotationY(increment: number): void;

Parameters

increment

number

Returns

void

Remarks

[ API set: WordApiDesktop 1.3 ]

incrementRotationZ(increment)

Rotates a shape on the z-axis. The number of degrees to rotate.

incrementRotationZ(increment: number): void;

Parameters

increment

number

Returns

void

Remarks

[ API set: WordApiDesktop 1.3 ]

load(options)

Queues up a command to load the specified properties of the object. You must call context.sync() before reading the properties.

load(options?: Word.Interfaces.ThreeDimensionalFormatLoadOptions): Word.ThreeDimensionalFormat;

Parameters

options
Word.Interfaces.ThreeDimensionalFormatLoadOptions

Provides options for which properties of the object to load.

Returns

load(propertyNames)

Queues up a command to load the specified properties of the object. You must call context.sync() before reading the properties.

load(propertyNames?: string | string[]): Word.ThreeDimensionalFormat;

Parameters

propertyNames

string | string[]

A comma-delimited string or an array of strings that specify the properties to load.

Returns

load(propertyNamesAndPaths)

Queues up a command to load the specified properties of the object. You must call context.sync() before reading the properties.

load(propertyNamesAndPaths?: {
            select?: string;
            expand?: string;
        }): Word.ThreeDimensionalFormat;

Parameters

propertyNamesAndPaths

{ select?: string; expand?: string; }

propertyNamesAndPaths.select is a comma-delimited string that specifies the properties to load, and propertyNamesAndPaths.expand is a comma-delimited string that specifies the navigation properties to load.

Returns

resetRotation()

Resets the extrusion rotation around the x-axis, y-axis, and z-axis to 0.

resetRotation(): void;

Returns

void

Remarks

[ API set: WordApiDesktop 1.3 ]

set(properties, options)

Sets multiple properties of an object at the same time. You can pass either a plain object with the appropriate properties, or another API object of the same type.

set(properties: Interfaces.ThreeDimensionalFormatUpdateData, options?: OfficeExtension.UpdateOptions): void;

Parameters

properties
Word.Interfaces.ThreeDimensionalFormatUpdateData

A JavaScript object with properties that are structured isomorphically to the properties of the object on which the method is called.

options
OfficeExtension.UpdateOptions

Provides an option to suppress errors if the properties object tries to set any read-only properties.

Returns

void

set(properties)

Sets multiple properties on the object at the same time, based on an existing loaded object.

set(properties: Word.ThreeDimensionalFormat): void;

Parameters

Returns

void

setExtrusionDirection(presetExtrusionDirection)

Sets the direction of the extrusion's sweep path.

setExtrusionDirection(presetExtrusionDirection: Word.PresetExtrusionDirection): void;

Parameters

presetExtrusionDirection
Word.PresetExtrusionDirection

The preset direction.

Returns

void

Remarks

[ API set: WordApiDesktop 1.3 ]

setExtrusionDirection(presetExtrusionDirection)

Sets the direction of the extrusion's sweep path.

setExtrusionDirection(presetExtrusionDirection: "Mixed" | "BottomRight" | "Bottom" | "BottomLeft" | "Right" | "None" | "Left" | "TopRight" | "Top" | "TopLeft"): void;

Parameters

presetExtrusionDirection

"Mixed" | "BottomRight" | "Bottom" | "BottomLeft" | "Right" | "None" | "Left" | "TopRight" | "Top" | "TopLeft"

The preset direction.

Returns

void

Remarks

[ API set: WordApiDesktop 1.3 ]

setPresetCamera(presetCamera)

Sets the camera preset for the shape. The preset camera type.

setPresetCamera(presetCamera: Word.PresetCamera): void;

Parameters

presetCamera
Word.PresetCamera

Returns

void

Remarks

[ API set: WordApiDesktop 1.3 ]

setPresetCamera(presetCamera)

Sets the camera preset for the shape. The preset camera type.

setPresetCamera(presetCamera: "Mixed" | "LegacyObliqueTopLeft" | "LegacyObliqueTop" | "LegacyObliqueTopRight" | "LegacyObliqueLeft" | "LegacyObliqueFront" | "LegacyObliqueRight" | "LegacyObliqueBottomLeft" | "LegacyObliqueBottom" | "LegacyObliqueBottomRight" | "LegacyPerspectiveTopLeft" | "LegacyPerspectiveTop" | "LegacyPerspectiveTopRight" | "LegacyPerspectiveLeft" | "LegacyPerspectiveFront" | "LegacyPerspectiveRight" | "LegacyPerspectiveBottomLeft" | "LegacyPerspectiveBottom" | "LegacyPerspectiveBottomRight" | "OrthographicFront" | "IsometricTopUp" | "IsometricTopDown" | "IsometricBottomUp" | "IsometricBottomDown" | "IsometricLeftUp" | "IsometricLeftDown" | "IsometricRightUp" | "IsometricRightDown" | "IsometricOffAxis1Left" | "IsometricOffAxis1Right" | "IsometricOffAxis1Top" | "IsometricOffAxis2Left" | "IsometricOffAxis2Right" | "IsometricOffAxis2Top" | "IsometricOffAxis3Left" | "IsometricOffAxis3Right" | "IsometricOffAxis3Bottom" | "IsometricOffAxis4Left" | "IsometricOffAxis4Right" | "IsometricOffAxis4Bottom" | "ObliqueTopLeft" | "ObliqueTop" | "ObliqueTopRight" | "ObliqueLeft" | "ObliqueRight" | "ObliqueBottomLeft" | "ObliqueBottom" | "ObliqueBottomRight" | "PerspectiveFront" | "PerspectiveLeft" | "PerspectiveRight" | "PerspectiveAbove" | "PerspectiveBelow" | "PerspectiveAboveLeftFacing" | "PerspectiveAboveRightFacing" | "PerspectiveContrastingLeftFacing" | "PerspectiveContrastingRightFacing" | "PerspectiveHeroicLeftFacing" | "PerspectiveHeroicRightFacing" | "PerspectiveHeroicExtremeLeftFacing" | "PerspectiveHeroicExtremeRightFacing" | "PerspectiveRelaxed" | "PerspectiveRelaxedModerately"): void;

Parameters

presetCamera

"Mixed" | "LegacyObliqueTopLeft" | "LegacyObliqueTop" | "LegacyObliqueTopRight" | "LegacyObliqueLeft" | "LegacyObliqueFront" | "LegacyObliqueRight" | "LegacyObliqueBottomLeft" | "LegacyObliqueBottom" | "LegacyObliqueBottomRight" | "LegacyPerspectiveTopLeft" | "LegacyPerspectiveTop" | "LegacyPerspectiveTopRight" | "LegacyPerspectiveLeft" | "LegacyPerspectiveFront" | "LegacyPerspectiveRight" | "LegacyPerspectiveBottomLeft" | "LegacyPerspectiveBottom" | "LegacyPerspectiveBottomRight" | "OrthographicFront" | "IsometricTopUp" | "IsometricTopDown" | "IsometricBottomUp" | "IsometricBottomDown" | "IsometricLeftUp" | "IsometricLeftDown" | "IsometricRightUp" | "IsometricRightDown" | "IsometricOffAxis1Left" | "IsometricOffAxis1Right" | "IsometricOffAxis1Top" | "IsometricOffAxis2Left" | "IsometricOffAxis2Right" | "IsometricOffAxis2Top" | "IsometricOffAxis3Left" | "IsometricOffAxis3Right" | "IsometricOffAxis3Bottom" | "IsometricOffAxis4Left" | "IsometricOffAxis4Right" | "IsometricOffAxis4Bottom" | "ObliqueTopLeft" | "ObliqueTop" | "ObliqueTopRight" | "ObliqueLeft" | "ObliqueRight" | "ObliqueBottomLeft" | "ObliqueBottom" | "ObliqueBottomRight" | "PerspectiveFront" | "PerspectiveLeft" | "PerspectiveRight" | "PerspectiveAbove" | "PerspectiveBelow" | "PerspectiveAboveLeftFacing" | "PerspectiveAboveRightFacing" | "PerspectiveContrastingLeftFacing" | "PerspectiveContrastingRightFacing" | "PerspectiveHeroicLeftFacing" | "PerspectiveHeroicRightFacing" | "PerspectiveHeroicExtremeLeftFacing" | "PerspectiveHeroicExtremeRightFacing" | "PerspectiveRelaxed" | "PerspectiveRelaxedModerately"

Returns

void

Remarks

[ API set: WordApiDesktop 1.3 ]

setThreeDimensionalFormat(presetThreeDimensionalFormat)

Sets the preset extrusion format. The preset format.

setThreeDimensionalFormat(presetThreeDimensionalFormat: Word.PresetThreeDimensionalFormat): void;

Parameters

presetThreeDimensionalFormat
Word.PresetThreeDimensionalFormat

Returns

void

Remarks

[ API set: WordApiDesktop 1.3 ]

setThreeDimensionalFormat(presetThreeDimensionalFormat)

Sets the preset extrusion format. The preset format.

setThreeDimensionalFormat(presetThreeDimensionalFormat: "Mixed" | "Format1" | "Format2" | "Format3" | "Format4" | "Format5" | "Format6" | "Format7" | "Format8" | "Format9" | "Format10" | "Format11" | "Format12" | "Format13" | "Format14" | "Format15" | "Format16" | "Format17" | "Format18" | "Format19" | "Format20"): void;

Parameters

presetThreeDimensionalFormat

"Mixed" | "Format1" | "Format2" | "Format3" | "Format4" | "Format5" | "Format6" | "Format7" | "Format8" | "Format9" | "Format10" | "Format11" | "Format12" | "Format13" | "Format14" | "Format15" | "Format16" | "Format17" | "Format18" | "Format19" | "Format20"

Returns

void

Remarks

[ API set: WordApiDesktop 1.3 ]

toJSON()

Overrides the JavaScript toJSON() method in order to provide more useful output when an API object is passed to JSON.stringify(). (JSON.stringify, in turn, calls the toJSON method of the object that's passed to it.) Whereas the original Word.ThreeDimensionalFormat object is an API object, the toJSON method returns a plain JavaScript object (typed as Word.Interfaces.ThreeDimensionalFormatData) that contains shallow copies of any loaded child properties from the original object.

toJSON(): Word.Interfaces.ThreeDimensionalFormatData;

Returns

track()

Track the object for automatic adjustment based on surrounding changes in the document. This call is a shorthand for context.trackedObjects.add(thisObject). If you're using this object across .sync calls and outside the sequential execution of a ".run" batch, and get an "InvalidObjectPath" error when setting a property or invoking a method on the object, you need to add the object to the tracked object collection when the object was first created. If this object is part of a collection, you should also track the parent collection.

track(): Word.ThreeDimensionalFormat;

Returns

untrack()

Release the memory associated with this object, if it has previously been tracked. This call is shorthand for context.trackedObjects.remove(thisObject). Having many tracked objects slows down the host application, so please remember to free any objects you add, once you're done using them. You'll need to call context.sync() before the memory release takes effect.

untrack(): Word.ThreeDimensionalFormat;

Returns