SHAPE

SHAPE_3分词条

目录 [隐藏]

SHAPE Excel中的Shape 对象

 
Excel中,Shape 对象代表绘图层中的对象,如自选图形、任意多边形、OLE 对象或图片。Shape 对象是 Shapes 集合的成员。Shapes 集合包含幻灯片上的所有图形。
注释 有三个代表图形的对象:Shapes 集合,该集合代表文档中的所有图形;ShapeRange 集合,该集合代表文档中的图形的指定子集(例如,ShapeRange 对象可能代表文档中的第一个和第四个图形,或者代表文档中所有选定的图形);以及 Shape 对象,该对象代表文档中的单个图形。如果同时处理若干图形,或处理选定的图形,可用 ShapeRange 集合。有关如何处理单个图形或同时处理若干图形的概述,请参阅处理图形(图形对象)。

SHAPE Shape 对象用法

 

 

返回现有的图形


可用 Shapes(index)(其中 index 为图形的名称或索引号)返回代表某一图形的 Shape 对象。下例将 myDocument 中第一个图形和名为“Rectangle 1”的图形进行水平翻转。

Set myDocument = Worksheets(1)
myDocument.Shapes(1).Flip msoFlipHorizontal
myDocument.Shapes("Rectangle 1").Flip msoFlipHorizontal

向 Shapes 集合添加新的图形时,将对该新添加的图形赋以默认的名称。若要为图形指定更有意义的名称,可使用 Name 属性。下例向 myDocument 添加矩形,将其命名为“Red Square”,然后设置该矩形的前景色和线型。

Set myDocument = Worksheets(1)
With myDocument.Shapes.AddShape(msoShapeRectangle, _
144, 144, 72, 72)
.Name = "Red Square"
.Fill.ForeColor.RGB = RGB(255, 0, 0)
.Line.DashStyle = msoLineDashDot
End With

 

返回选定区域内的图形


可用 Selection.ShapeRange(index)(其中 index 为图形的名称或索引号)返回代表某一选定图形的 Shape 对象。下例设置了活动窗口内选定图形中的第一个图形的填充格式,假定至少选定了一个图形。

ActiveWindow.Selection.ShapeRange(1).Fill.ForeColor.RGB = _
RGB(255, 0, 0)

 

返回附加到连接符端点上的图形


若要返回代表附加到连接符的某一端点上的图形的 Shape 对象,可使用 BeginConnectedShape 属性或 EndConnectedShape 属性。

 

返回新建的任意多边形


可用 BuildFreeform 方法和 AddNodes 方法定义新建的任意多边形的几何图形。用 ConvertToShape 方法创建任意多边形并返回代表它的 Shape 对象。

 

返回组合内的单个图形


可用 GroupItems(index)(其中 index 为图形的名称或在组合中的索引号)返回代表组合图形中的单个图形的 Shape 对象。

 

返回新建的图形组合


可用 GroupRegroup 方法来组合一批图形,并返回代表新构造的组合的单个 Shape 对象。在构造完一个新组合后,可以像对其他图形一样来处理它。

SHAPE 相关英文内容

 
 
 
shape
n.

外形, 形状, 形态, (尤指女子的)体形, 身段, 形式

vt.

制作, 定形, 使成形, 塑造, 使符合

vi.

成形, 形成, 成长

英英解释:名词shape:

1. any spatial attributes (especially as defined by outline)
同义词:form, configuration, contour, conformation

2. the spatial arrangement of something as distinct from its substance
同义词:form

3. alternative names for the body of a human being
同义词:human body, physical body, material body, soma, build, figure, physique, anatomy, bod, chassis, frame, form, flesh

4. a concrete representation of an otherwise nebulous concept
同义词:embodiment

5. the visual appearance of something or someone
同义词:form, cast

6. the state of (good) health (especially in the phrases `in condition' or `in shape' or `out of condition' or `out of shape')
同义词:condition

7. the supreme headquarters that advises NATO on military matters and oversees all aspects of the Allied Command Europe
同义词:Supreme Headquarters Allied Powers Europe

8. a perceptual structure
同义词:form, pattern

动词shape:

1. shape or influence; give direction to
同义词:determine, mold, influence, regulate

2. make something, usually for a specific function
同义词:form, work, mold, mould, forge

3. give shape or form to
同义词:form


习惯用语
be in bad shape 情况还处于混乱状态; 健康情况不佳 get [put] sth. into shape 使成一定形状 整顿; 使具体化, 条理化 give shape to 使成形; 表达, 使...具体[条理]化 in shape 在形状上, 在外型上 结构恰当地, 保持固有形式地 处于良好状态, 处于有准备状态 in good shape 完整无损, 处于良好状态, 健康情况良好 in no shape (or form) 决不, 完全不, 一点也不 in the shape of 以...的形状[形式], 作为 keep ... in shape 使...保持原形 knock sth. into [out of] shape 使成形[变形, 走样] lick ... into shape 塑造, 使象样; 使有效能, 使趋于完善 out of shape 变[走]样; 不成样子 身体不舒服, 生病 put ... in shape 使...成形 put ...out of shape 使变样 settle ... into shape 有头绪, 上正轨; 有眉目 show your shape s 让大家瞧瞧你 take shape 成形; 具体化; 有显著发展 take shape in 具体化; 成形; 体现 take the shape of 呈...形状, 以...形式出现 wear to one's shape (衣服)穿过一段时间后变得合身 whip into shape [美, 口]训练, 强使成形; 严格管教成人 shape in with [美俚]与...厮混在一起 shape ... from ... 用... 材料使...成型 shape ... into ... 把...加工[塑造、铸]成...形 shape up [out] 形成, 成型 进步, 顺利发展 开始学乖, 规矩起来; 按别人的要求去做 (码头工人)排起队来等候分配工作

附图

上传图片 

互动百科的词条(含所附图片)系由网友上传,如果涉嫌侵权,请与客服联系,我们将按照法律之相关规定及时进行处理。如需转载,请注明来源于www.hudong.com

被引用: 本词条已被如下媒体引用 我来补充
开放分类: 我来补充

讨论区

更多>>

编辑者

共2人协作

相关词条

第二节经皮血管腔内血管成形术
紫砂壶
百科蝌蚪团
辊轧锻造
滑块
注塑机
固体催化剂制备
吸塑机
陶瓷器成型
玻璃器皿
更多

Copyright © 2005-2009 hudong.com Ltd. All Rights Reserved. 互动在线 版权所有