Excel.Interfaces.ShapeUpdateData interface

用于更新 Shape 对象上的数据的接口, 可用于 "shape。 set (An interface for updating data on the Shape object, for use in "shape.set({ ... })".

属性

altTextDescription

返回或设置形状对象的可选说明文本。Returns or sets the alternative description text for a Shape object.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

altTextTitle

返回或设置形状对象的可选标题文本。Returns or sets the alternative title text for a Shape object.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

fill

返回此形状的填充格式。Returns the fill formatting of this shape.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

geometricShapeType

表示此几何形状的几何形状类型。Represents the geometric shape type of this geometric shape. 有关详细信息,请参阅 Excel.GeometricShapeType。See Excel.GeometricShapeType for details. 如果形状类型不是“GeometricShape”,返回 NULL。Returns null if the shape type is not "GeometricShape".

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

height

表示形状的高度(以磅为单位)。Represents the height, in points, of the shape. 当设置为负值或零作为输入时, 将引发无效参数异常。Throws an invalid argument exception when set with a negative value or zero as input.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

left

从形状左侧到工作表左侧的距离(以磅为单位)。The distance, in points, from the left side of the shape to the left side of the worksheet. 当设置为负值作为输入时, 将引发无效参数异常。Throws an invalid argument exception when set with a negative value as input.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

lineFormat

返回此形状的线条格式。Returns the line formatting of this shape.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

lockAspectRatio

指定此形状的纵横比是否锁定。Specifies whether or not the aspect ratio of this shape is locked.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

name

表示形状的名称。Represents the name of the shape.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

placement

表示对象如何附加到其下方的单元格。Represents how the object is attached to the cells below it.

[API 集: EXCELAPI BETA (仅限预览)][ API set: ExcelApi BETA (PREVIEW ONLY) ]

rotation

表示形状的旋转度数。Represents the rotation, in degrees, of the shape.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

top

从形状上边缘到工作表上边缘之间的距离(以磅为单位)。The distance, in points, from the top edge of the shape to the top edge of the worksheet. 当设置为负值作为输入时, 将引发无效参数异常。Throws an invalid argument exception when set with a negative value as input.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

visible

表示此形状的可视性。Represents the visibility of this shape.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

width

表示形状的宽度(以磅为单位)。Represents the width, in points, of the shape. 当设置为负值或零作为输入时, 将引发无效参数异常。Throws an invalid argument exception when set with a negative value or zero as input.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

属性详细信息

altTextDescription

返回或设置形状对象的可选说明文本。Returns or sets the alternative description text for a Shape object.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

altTextDescription?: string;

属性值

string

altTextTitle

返回或设置形状对象的可选标题文本。Returns or sets the alternative title text for a Shape object.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

altTextTitle?: string;

属性值

string

fill

返回此形状的填充格式。Returns the fill formatting of this shape.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

fill?: Excel.Interfaces.ShapeFillUpdateData;

属性值

geometricShapeType

表示此几何形状的几何形状类型。Represents the geometric shape type of this geometric shape. 有关详细信息,请参阅 Excel.GeometricShapeType。See Excel.GeometricShapeType for details. 如果形状类型不是“GeometricShape”,返回 NULL。Returns null if the shape type is not "GeometricShape".

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

geometricShapeType?: Excel.GeometricShapeType | "LineInverse" | "Triangle" | "RightTriangle" | "Rectangle" | "Diamond" | "Parallelogram" | "Trapezoid" | "NonIsoscelesTrapezoid" | "Pentagon" | "Hexagon" | "Heptagon" | "Octagon" | "Decagon" | "Dodecagon" | "Star4" | "Star5" | "Star6" | "Star7" | "Star8" | "Star10" | "Star12" | "Star16" | "Star24" | "Star32" | "RoundRectangle" | "Round1Rectangle" | "Round2SameRectangle" | "Round2DiagonalRectangle" | "SnipRoundRectangle" | "Snip1Rectangle" | "Snip2SameRectangle" | "Snip2DiagonalRectangle" | "Plaque" | "Ellipse" | "Teardrop" | "HomePlate" | "Chevron" | "PieWedge" | "Pie" | "BlockArc" | "Donut" | "NoSmoking" | "RightArrow" | "LeftArrow" | "UpArrow" | "DownArrow" | "StripedRightArrow" | "NotchedRightArrow" | "BentUpArrow" | "LeftRightArrow" | "UpDownArrow" | "LeftUpArrow" | "LeftRightUpArrow" | "QuadArrow" | "LeftArrowCallout" | "RightArrowCallout" | "UpArrowCallout" | "DownArrowCallout" | "LeftRightArrowCallout" | "UpDownArrowCallout" | "QuadArrowCallout" | "BentArrow" | "UturnArrow" | "CircularArrow" | "LeftCircularArrow" | "LeftRightCircularArrow" | "CurvedRightArrow" | "CurvedLeftArrow" | "CurvedUpArrow" | "CurvedDownArrow" | "SwooshArrow" | "Cube" | "Can" | "LightningBolt" | "Heart" | "Sun" | "Moon" | "SmileyFace" | "IrregularSeal1" | "IrregularSeal2" | "FoldedCorner" | "Bevel" | "Frame" | "HalfFrame" | "Corner" | "DiagonalStripe" | "Chord" | "Arc" | "LeftBracket" | "RightBracket" | "LeftBrace" | "RightBrace" | "BracketPair" | "BracePair" | "Callout1" | "Callout2" | "Callout3" | "AccentCallout1" | "AccentCallout2" | "AccentCallout3" | "BorderCallout1" | "BorderCallout2" | "BorderCallout3" | "AccentBorderCallout1" | "AccentBorderCallout2" | "AccentBorderCallout3" | "WedgeRectCallout" | "WedgeRRectCallout" | "WedgeEllipseCallout" | "CloudCallout" | "Cloud" | "Ribbon" | "Ribbon2" | "EllipseRibbon" | "EllipseRibbon2" | "LeftRightRibbon" | "VerticalScroll" | "HorizontalScroll" | "Wave" | "DoubleWave" | "Plus" | "FlowChartProcess" | "FlowChartDecision" | "FlowChartInputOutput" | "FlowChartPredefinedProcess" | "FlowChartInternalStorage" | "FlowChartDocument" | "FlowChartMultidocument" | "FlowChartTerminator" | "FlowChartPreparation" | "FlowChartManualInput" | "FlowChartManualOperation" | "FlowChartConnector" | "FlowChartPunchedCard" | "FlowChartPunchedTape" | "FlowChartSummingJunction" | "FlowChartOr" | "FlowChartCollate" | "FlowChartSort" | "FlowChartExtract" | "FlowChartMerge" | "FlowChartOfflineStorage" | "FlowChartOnlineStorage" | "FlowChartMagneticTape" | "FlowChartMagneticDisk" | "FlowChartMagneticDrum" | "FlowChartDisplay" | "FlowChartDelay" | "FlowChartAlternateProcess" | "FlowChartOffpageConnector" | "ActionButtonBlank" | "ActionButtonHome" | "ActionButtonHelp" | "ActionButtonInformation" | "ActionButtonForwardNext" | "ActionButtonBackPrevious" | "ActionButtonEnd" | "ActionButtonBeginning" | "ActionButtonReturn" | "ActionButtonDocument" | "ActionButtonSound" | "ActionButtonMovie" | "Gear6" | "Gear9" | "Funnel" | "MathPlus" | "MathMinus" | "MathMultiply" | "MathDivide" | "MathEqual" | "MathNotEqual" | "CornerTabs" | "SquareTabs" | "PlaqueTabs" | "ChartX" | "ChartStar" | "ChartPlus";

属性值

Excel.GeometricShapeType | "LineInverse" | "Triangle" | "RightTriangle" | "Rectangle" | "Diamond" | "Parallelogram" | "Trapezoid" | "NonIsoscelesTrapezoid" | "Pentagon" | "Hexagon" | "Heptagon" | "Octagon" | "Decagon" | "Dodecagon" | "Star4" | "Star5" | "Star6" | "Star7" | "Star8" | "Star10" | "Star12" | "Star16" | "Star24" | "Star32" | "RoundRectangle" | "Round1Rectangle" | "Round2SameRectangle" | "Round2DiagonalRectangle" | "SnipRoundRectangle" | "Snip1Rectangle" | "Snip2SameRectangle" | "Snip2DiagonalRectangle" | "Plaque" | "Ellipse" | "Teardrop" | "HomePlate" | "Chevron" | "PieWedge" | "Pie" | "BlockArc" | "Donut" | "NoSmoking" | "RightArrow" | "LeftArrow" | "UpArrow" | "DownArrow" | "StripedRightArrow" | "NotchedRightArrow" | "BentUpArrow" | "LeftRightArrow" | "UpDownArrow" | "LeftUpArrow" | "LeftRightUpArrow" | "QuadArrow" | "LeftArrowCallout" | "RightArrowCallout" | "UpArrowCallout" | "DownArrowCallout" | "LeftRightArrowCallout" | "UpDownArrowCallout" | "QuadArrowCallout" | "BentArrow" | "UturnArrow" | "CircularArrow" | "LeftCircularArrow" | "LeftRightCircularArrow" | "CurvedRightArrow" | "CurvedLeftArrow" | "CurvedUpArrow" | "CurvedDownArrow" | "SwooshArrow" | "Cube" | "Can" | "LightningBolt" | "Heart" | "Sun" | "Moon" | "SmileyFace" | "IrregularSeal1" | "IrregularSeal2" | "FoldedCorner" | "Bevel" | "Frame" | "HalfFrame" | "Corner" | "DiagonalStripe" | "Chord" | "Arc" | "LeftBracket" | "RightBracket" | "LeftBrace" | "RightBrace" | "BracketPair" | "BracePair" | "Callout1" | "Callout2" | "Callout3" | "AccentCallout1" | "AccentCallout2" | "AccentCallout3" | "BorderCallout1" | "BorderCallout2" | "BorderCallout3" | "AccentBorderCallout1" | "AccentBorderCallout2" | "AccentBorderCallout3" | "WedgeRectCallout" | "WedgeRRectCallout" | "WedgeEllipseCallout" | "CloudCallout" | "Cloud" | "Ribbon" | "Ribbon2" | "EllipseRibbon" | "EllipseRibbon2" | "LeftRightRibbon" | "VerticalScroll" | "HorizontalScroll" | "Wave" | "DoubleWave" | "Plus" | "FlowChartProcess" | "FlowChartDecision" | "FlowChartInputOutput" | "FlowChartPredefinedProcess" | "FlowChartInternalStorage" | "FlowChartDocument" | "FlowChartMultidocument" | "FlowChartTerminator" | "FlowChartPreparation" | "FlowChartManualInput" | "FlowChartManualOperation" | "FlowChartConnector" | "FlowChartPunchedCard" | "FlowChartPunchedTape" | "FlowChartSummingJunction" | "FlowChartOr" | "FlowChartCollate" | "FlowChartSort" | "FlowChartExtract" | "FlowChartMerge" | "FlowChartOfflineStorage" | "FlowChartOnlineStorage" | "FlowChartMagneticTape" | "FlowChartMagneticDisk" | "FlowChartMagneticDrum" | "FlowChartDisplay" | "FlowChartDelay" | "FlowChartAlternateProcess" | "FlowChartOffpageConnector" | "ActionButtonBlank" | "ActionButtonHome" | "ActionButtonHelp" | "ActionButtonInformation" | "ActionButtonForwardNext" | "ActionButtonBackPrevious" | "ActionButtonEnd" | "ActionButtonBeginning" | "ActionButtonReturn" | "ActionButtonDocument" | "ActionButtonSound" | "ActionButtonMovie" | "Gear6" | "Gear9" | "Funnel" | "MathPlus" | "MathMinus" | "MathMultiply" | "MathDivide" | "MathEqual" | "MathNotEqual" | "CornerTabs" | "SquareTabs" | "PlaqueTabs" | "ChartX" | "ChartStar" | "ChartPlus"

height

表示形状的高度(以磅为单位)。Represents the height, in points, of the shape. 当设置为负值或零作为输入时, 将引发无效参数异常。Throws an invalid argument exception when set with a negative value or zero as input.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

height?: number;

属性值

number

left

从形状左侧到工作表左侧的距离(以磅为单位)。The distance, in points, from the left side of the shape to the left side of the worksheet. 当设置为负值作为输入时, 将引发无效参数异常。Throws an invalid argument exception when set with a negative value as input.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

left?: number;

属性值

number

lineFormat

返回此形状的线条格式。Returns the line formatting of this shape.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

lineFormat?: Excel.Interfaces.ShapeLineFormatUpdateData;

属性值

lockAspectRatio

指定此形状的纵横比是否锁定。Specifies whether or not the aspect ratio of this shape is locked.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

lockAspectRatio?: boolean;

属性值

boolean

name

表示形状的名称。Represents the name of the shape.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

name?: string;

属性值

string

placement

备注

此 API 以预览状态提供给开发者,可能根据我们收到的反馈更改。 请勿在生产环境中使用此 API。

表示对象如何附加到其下方的单元格。Represents how the object is attached to the cells below it.

[API 集: EXCELAPI BETA (仅限预览)][ API set: ExcelApi BETA (PREVIEW ONLY) ]

placement?: Excel.Placement | "TwoCell" | "OneCell" | "Absolute";

属性值

Excel.Placement | "TwoCell" | "OneCell" | "Absolute"

rotation

表示形状的旋转度数。Represents the rotation, in degrees, of the shape.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

rotation?: number;

属性值

number

top

从形状上边缘到工作表上边缘之间的距离(以磅为单位)。The distance, in points, from the top edge of the shape to the top edge of the worksheet. 当设置为负值作为输入时, 将引发无效参数异常。Throws an invalid argument exception when set with a negative value as input.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

top?: number;

属性值

number

visible

表示此形状的可视性。Represents the visibility of this shape.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

visible?: boolean;

属性值

boolean

width

表示形状的宽度(以磅为单位)。Represents the width, in points, of the shape. 当设置为负值或零作为输入时, 将引发无效参数异常。Throws an invalid argument exception when set with a negative value or zero as input.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

width?: number;

属性值

number