Home » エクセルマクロ・Excel VBAの使い方 » グラフ・Chart » ChartObjectとShapeのプロパティ比較一覧

ChartObjectとShapeのプロパティ比較一覧

動作検証バージョン:64bit Windows 10 Pro + 32bit Excel(バージョン2106 ビルド14131.20278 Microsoft Store)

Excel.ChartObject

ワークシート上の埋め込みグラフの入れ物を表すChartObjectオブジェクトは、図形を表すShapeオブジェクトに似た部分があります。

ChartObjectオブジェクトに用意されているプロパティは、Shapeオブジェクトのプロパティより少ないのですが、同じものが結構あります。

[スポンサードリンク]

ChartObjectオブジェクトのプロパティとShapeオブジェクトのプロパティを比較したかったので、一覧を作成しました。

Excel.ChartObjectのプロパティ戻り値Excel.Shapeのプロパティ戻り値
-AdjustmentsAdjustments
-AlternativeTextString
ApplicationApplicationApplicationApplication
-AutoShapeTypeMsoAutoShapeType
-BackgroundStyleMsoBackgroundStyleIndex
-BlackWhiteModeMsoBlackWhiteMode
BottomRightCellRangeBottomRightCellRange
-CalloutCalloutFormat
ChartChartChartChart
-ChildMsoTriState
-ConnectionSiteCountLong
-ConnectorMsoTriState
-ConnectorFormatConnectorFormat
-ControlFormatControlFormat
CreatorXlCreatorCreatorXlCreator
-DecorativeMsoTriState
-FillFillFormat
-FormControlTypeXlFormControl
-GlowGlowFormat
-GraphicStyleMsoGraphicStyleIndex
-GroupItemsGroupShapes
-HasChartMsoTriState
-HasSmartArtMsoTriState
HeightDoubleHeightSingle
-HorizontalFlipMsoTriState
-HyperlinkHyperlink
-IDLong
IndexLongー
LeftDoubleLeftSingle
-LineLineFormat
-LinkFormatLinkFormat
-LockAspectRatioMsoTriState
LockedBooleanLockedBoolean
-Model3DModel3DFormat
NameStringNameString
-NodesShapeNodes
-OLEFormatOLEFormat
-OnActionString
ParentObjectParentObject
-ParentGroupShape
-PictureFormatPictureFormat
PlacementVariantPlacementXlPlacement
PrintObjectPrintObjectー
ProtectChartObjectBooleanー
-ReflectionReflectionFormat
-RotationSingle
RoundedCornersBooleanー
ShadowBooleanShadowShadowFormat
ShapeRangeShapeRangeー
-ShapeStyleMsoShapeStyleIndex
-SmartArtSmartArt
-SoftEdgeSoftEdgeFormat
-TextEffectTextEffectFormat
-TextFrameTextFrame
-TextFrame2TextFrame2
-ThreeDThreeDFormat
-TitleString
TopDoubleTopSingle
TopLeftCellRangeTopLeftCellRange
-TypeMsoShapeType
-VerticalFlipMsoTriState
-VerticesVariant
VisibleBooleanVisibleMsoTriState
WidthDoubleWidthSingle
ZOrderLong-
-ZOrderPositionLong

位置や大きさに関わるプロパティの戻り値が、ShapeオブジェクトではSingleで定義されているのに対し、ChartObjectオブジェクトの場合Doubleになっていること等を興味深く感じます。

最終更新日時:2021-11-26 15:18

[スポンサードリンク]

Home » エクセルマクロ・Excel VBAの使い方 » グラフ・Chart » ChartObjectとShapeのプロパティ比較一覧

「グラフ・Chart」の記事一覧

検索

Copyright © インストラクターのネタ帳 All Rights Reserved.

.