形状对象 (Visio)
代表可在绘图窗口中选择的任何内容:基本形状、组合、参考线或来自嵌入或链接到 Microsoft Visio 中的另一个应用程序的对象。
备注
Shape 对象的默认属性为 Name。
可以从以下对象的 Shapes 集合中检索特定的 Shape 对象:
- Page 对象
- Master 对象
- 表示组合的 Shape 对象
若要检索 Cell 对象和 Connect 对象,请分别使用 Shape 对象的 Cells 和 Connects 属性。
注意
Page 对象的 PageSheet 属性和 Master 对象返回一个 Shape 对象,其 Type 属性返回 visTypePage。 它具有指定绘图大小和绘图比例等属性的单元格。
Document 对象的 DocumentSheet 属性还返回一个 Shape 对象,其 Type 属性返回 visTypeDoc。 它具有指定文档属性的单元格。
事件
- BeforeSelectionDelete
- BeforeShapeDelete
- BeforeShapeTextEdit
- CellChanged
- ConvertToGroupCanceled
- FormulaChanged
- GroupCanceled
- QueryCancelConvertToGroup
- QueryCancelGroup
- QueryCancelSelectionDelete
- QueryCancelUngroup
- SelectionAdded
- SelectionDeleteCanceled
- ShapeAdded
- ShapeChanged
- ShapeDataGraphicChanged
- ShapeExitedTextEdit
- ShapeLinkAdded
- ShapeLinkDeleted
- ShapeParentChanged
- TextChanged
- UngroupCanceled
方法
- AddGuide
- AddHyperlink
- AddNamedRow
- AddRow
- AddRows
- AddSection
- AddToContainers
- AutoConnect
- BoundingBox
- BreakLinkToData
- BringForward
- BringToFront
- CenterDrawing
- ChangePicture
- ConnectedShapes
- ConvertToGroup
- Copy
- CreateSelection
- CreateSubProcess
- Cut
- Delete
- DeleteEx
- DeleteRow
- DeleteSection
- Disconnect
- DrawArcByThreePoints
- DrawBezier
- DrawCircularArc
- DrawLine
- DrawNURBS
- DrawOval
- DrawPolyline
- DrawQuarterArc
- DrawRectangle
- DrawSpline
- Drop
- DropMany
- DropManyU
- Duplicate
- Export
- FitCurve
- FlipHorizontal
- FlipVertical
- GetCustomPropertiesLinkedToData
- GetCustomPropertyLinkedColumn
- GetFormulas
- GetFormulasU
- GetLinkedDataRecordsetIDs
- GetLinkedDataRow
- GetResults
- GluedShapes
- Group
- HasCategory
- HitTest
- Import
- InsertFromFile
- InsertObject
- IsCustomPropertyLinked
- Layout
- LinkToData
- MoveToSubprocess
- Offset
- OpenDrawWindow
- OpenSheetWindow
- Paste
- PasteSpecial
- RemoveFromContainers
- ReplaceShape
- Resize
- ReverseEnds
- Rotate90
- SendBackward
- SendToBack
- SetBegin
- SetCenter
- SetEnd
- SetFormulas
- SetQuickStyle
- SetResults
- SwapEnds
- TransformXYFrom
- TransformXYTo
- Ungroup
- UpdateAlignmentBox
- VisualBoundingBox
- XYFromPage
- XYToPage
属性
- AlternativeText
- 应用程序
- AreaIU
- CalloutsAssociated
- CalloutTarget
- CellExists
- CellExistsU
- Cells
- CellsRowIndex
- CellsRowIndexU
- CellsSRC
- CellsSRCExists
- CellsU
- Characters
- CharCount
- ClassID
- Comments
- Connects
- ContainerProperties
- ContainingMaster
- ContainingMasterID
- ContainingPage
- ContainingPageID
- ContainingShape
- Data1
- Data2
- Data3
- DataGraphic
- DistanceFrom
- DistanceFromPoint
- Document
- EventList
- FillStyle
- FillStyleKeepFmt
- ForeignData
- ForeignType
- FromConnects
- GeometryCount
- Help
- Hyperlinks
- ID
- Index
- IsCallout
- IsDataGraphicCallout
- IsOpenForTextEdit
- Language
- Layer
- LayerCount
- LengthIU
- LineStyle
- LineStyleKeepFmt
- Master
- MasterShape
- MemberOfContainers
- Name
- NameID
- NameU
- Object
- ObjectIsInherited
- ObjectType
- OneD
- Parent
- Paths
- PathsLocal
- PersistsEvents
- Picture
- ProgID
- RootShape
- RowCount
- RowExists
- RowsCellCount
- RowType
- Section
- SectionExists
- Shapes
- SpatialNeighbors
- SpatialRelation
- SpatialSearch
- Stat
- Style
- StyleKeepFmt
- Text
- TextStyle
- TextStyleKeepFmt
- Title
- 类型
- UniqueID
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。