Shape-Objekt (Visio)Shape Object (Visio)

Repräsentiert alle Elemente, die Sie in einem Zeichnungsfenster auswählen können: Standard-Shapes, Gruppen, Führungslinien oder Objekte aus einer anderen Anwendung, die in Microsoft Visio eingebettet oder verknüpft sind.Represents anything you can select in a drawing window: a basic shape, a group, a guide, or an object from another application embedded or linked in Microsoft Visio.

BemerkungenRemarks

Die Standardeigenschaft eines Shape -Objekts ist Name.The default property of a Shape object is Name.

Sie können ein bestimmtes Shape -Objekt aus der Shapes -Auflistung der folgenden Objekte abrufen:You can retrieve a particular Shape object from the Shapes collection of the following objects:

  • Page -ObjektPage object

  • Master -ObjektMaster object

  • Shape-Objekt, das eine Gruppe darstelltShape object that represents a group

Verwenden Sie die Zellen und Connects -Eigenschaften des Shape -Objekts zum Abrufen von Cell -Objekten und Connect -Objekten.To retrieve Cell objects and Connect objects, use the Cells and Connects properties of a Shape object, respectively.

Hinweis PageSheet -Eigenschaft eines Page -Objekt und Master -Objekts gibt ein Shape -Objekt, dessen Type -Eigenschaft VisTypePagezurückgibt.Note The PageSheet property of a Page object and Master object returns a Shape object whose Type property returns visTypePage. Sie weist Zellen, die Eigenschaften wie Zeichnungsgröße und Zeichnungsmaßstab angeben.It has cells that specify properties such as drawing size and drawing scale. Die DocumentSheet -Eigenschaft eines Document -Objekts gibt ein Shape -Objekt, dessen Type -Eigenschaft VisTypeDocgibt, auch zurück.The DocumentSheet property of a Document object also returns a Shape object whose Type property returns visTypeDoc. Sie weist Zellen, die Eigenschaften des Dokuments angeben. Wenn Visual Studio-Projektmappe die Microsoft.Office.Interop.Visio Referenz enthält, wird dieses Objekt auf die folgenden Typen zugeordnet:It has cells that specify properties of the document.If your Visual Studio solution includes the Microsoft.Office.Interop.Visio reference, this object maps to the following types:

EreignisseEvents

NameName
BeforeSelectionDeleteBeforeSelectionDelete
BeforeShapeDeleteBeforeShapeDelete
BeforeShapeTextEditBeforeShapeTextEdit
CellChangedCellChanged
ConvertToGroupCanceledConvertToGroupCanceled
FormulaChangedFormulaChanged
GroupCanceledGroupCanceled
QueryCancelConvertToGroupQueryCancelConvertToGroup
QueryCancelGroupQueryCancelGroup
QueryCancelSelectionDeleteQueryCancelSelectionDelete
QueryCancelUngroupQueryCancelUngroup
SelectionAddedSelectionAdded
SelectionDeleteCanceledSelectionDeleteCanceled
ShapeAddedShapeAdded
ShapeChangedShapeChanged
ShapeDataGraphicChangedShapeDataGraphicChanged
ShapeExitedTextEditShapeExitedTextEdit
ShapeLinkAddedShapeLinkAdded
ShapeLinkDeletedShapeLinkDeleted
ShapeParentChangedShapeParentChanged
TextChangedTextChanged
UngroupCanceledUngroupCanceled

MethodenMethods

NameName
AddGuideAddGuide
AddHyperlinkAddHyperlink
AddNamedRowAddNamedRow
AddRowAddRow
AddRowsAddRows
AddSectionAddSection
AddToContainersAddToContainers
AutoConnectAutoConnect
BoundingBoxBoundingBox
BreakLinkToDataBreakLinkToData
BringForwardBringForward
BringToFrontBringToFront
CenterDrawingCenterDrawing
ChangePictureChangePicture
ConnectedShapesConnectedShapes
ConvertToGroupConvertToGroup
CopyCopy
CreateSelectionCreateSelection
CreateSubProcessCreateSubProcess
AusschneidenCut
DeleteDelete
DeleteExDeleteEx
DeleteRowDeleteRow
DeleteSectionDeleteSection
Verbindung trennenDisconnect
DrawArcByThreePointsDrawArcByThreePoints
DrawBezierDrawBezier
DrawCircularArcDrawCircularArc
DrawLineDrawLine
DrawNURBSDrawNURBS
DrawOvalDrawOval
DrawPolylineDrawPolyline
DrawQuarterArcDrawQuarterArc
DrawRectangleDrawRectangle
DrawSplineDrawSpline
DropDrop
DropManyDropMany
DropManyUDropManyU
DuplicateDuplicate
ExportExport
FitCurveFitCurve
FlipHorizontalFlipHorizontal
FlipVerticalFlipVertical
GetCustomPropertiesLinkedToDataGetCustomPropertiesLinkedToData
GetCustomPropertyLinkedColumnGetCustomPropertyLinkedColumn
GetFormulasGetFormulas
GetFormulasUGetFormulasU
GetLinkedDataRecordsetIDsGetLinkedDataRecordsetIDs
GetLinkedDataRowGetLinkedDataRow
GetResultsGetResults
GluedShapesGluedShapes
GroupGroup
HasCategoryHasCategory
HitTestHitTest
ImportImport
InsertFromFileInsertFromFile
InsertObjectInsertObject
IsCustomPropertyLinkedIsCustomPropertyLinked
LayoutLayout
LinkToDataLinkToData
MoveToSubprocessMoveToSubprocess
OffsetOffset
OpenDrawWindowOpenDrawWindow
OpenSheetWindowOpenSheetWindow
PastePaste
PasteSpecialPasteSpecial
RemoveFromContainersRemoveFromContainers
ReplaceShapeReplaceShape
ResizeResize
ReverseEndsReverseEnds
Rotate90Rotate90
SendBackwardSendBackward
SendToBackSendToBack
SetBeginSetBegin
SetCenterSetCenter
SetEndSetEnd
SetFormulasSetFormulas
SetQuickStyleSetQuickStyle
SetResultsSetResults
SwapEndsSwapEnds
TransformXYFromTransformXYFrom
TransformXYToTransformXYTo
UngroupUngroup
UpdateAlignmentBoxUpdateAlignmentBox
VisualBoundingBoxVisualBoundingBox
XYFromPageXYFromPage
XYToPageXYToPage

EigenschaftenProperties

NameName
ApplicationApplication
AreaIUAreaIU
CalloutsAssociatedCalloutsAssociated
CalloutTargetCalloutTarget
CellExistsCellExists
CellExistsUCellExistsU
ZellenCells
CellsRowIndexCellsRowIndex
CellsRowIndexUCellsRowIndexU
CellsSRCCellsSRC
CellsSRCExistsCellsSRCExists
CellsUCellsU
ZeichenCharacters
CharCountCharCount
ClassIDClassID
CommentsComments
ConnectsConnects
ContainerPropertiesContainerProperties
ContainingMasterContainingMaster
ContainingMasterIDContainingMasterID
ContainingPageContainingPage
ContainingPageIDContainingPageID
ContainingShapeContainingShape
Data1Data1
Data2Data2
Data3Data3
DataGraphicDataGraphic
DistanceFromDistanceFrom
DistanceFromPointDistanceFromPoint
DocumentDocument
EventListEventList
FillStyleFillStyle
FillStyleKeepFmtFillStyleKeepFmt
ForeignDataForeignData
ForeignTypeForeignType
FromConnectsFromConnects
GeometryCountGeometryCount
HilfeHelp
HyperlinksHyperlinks
IDID
IndexIndex
IsCalloutIsCallout
IsDataGraphicCalloutIsDataGraphicCallout
IsOpenForTextEditIsOpenForTextEdit
LanguageLanguage
LayerLayer
LayerCountLayerCount
LengthIULengthIU
LineStyleLineStyle
LineStyleKeepFmtLineStyleKeepFmt
MasterMaster
MasterShapeMasterShape
MemberOfContainersMemberOfContainers
NameName
NameIDNameID
NameUNameU
ObjektObject
ObjectIsInheritedObjectIsInherited
ObjectTypeObjectType
OneDOneD
ParentParent
PathsPaths
PathsLocalPathsLocal
PersistsEventsPersistsEvents
PicturePicture
ProgIDProgID
RootShapeRootShape
RowCountRowCount
RowExistsRowExists
RowsCellCountRowsCellCount
RowTypeRowType
SectionSection
SectionExistsSectionExists
ShapesShapes
SpatialNeighborsSpatialNeighbors
SpatialRelationSpatialRelation
SpatialSearchSpatialSearch
StatStat
FormatStyle
StyleKeepFmtStyleKeepFmt
TextText
TextStyleTextStyle
TextStyleKeepFmtTextStyleKeepFmt
TypType
UniqueIDUniqueID

Support und FeedbackSupport and feedback

Haben Sie Fragen oder Feedback zu Office VBA oder zu dieser Dokumentation?Have questions or feedback about Office VBA or this documentation? Unter Office VBA-Support und Feedback finden Sie Hilfestellung zu den Möglichkeiten, wie Sie Support erhalten und Feedback abgeben können.Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.