Excel VBAリファレンス(Shapesコレクション、Shapeオブジェクト編)
Shapeオブジェクトはオートシェイプ、フリーフォーム、OLEオブジェクト、図などの描画オブジェクトを表し、Shapeコレクションはシート内の全ての描画オブジェクトを表します。
⇒Excel VBAの主なオブジェクトについては、Excel VBAリファレンス(Excel VBAのオブジェクト構造編)を参照して下さい。
■Shapesコレクションの詳細
Shapesコレクションで提供されているメソッドとプロパティは下表の通りです。
Shapesコレクションのメソッド
| AddCalloutメソッド | |||||||||||
| 説明 | 新しい吹き出しを作成する
(※)MsoCalloutType列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Function AddCallout(Type As MsoCalloutType, Left As Single, Top As Single, Width As Single, Height As Single) As Shape | ||||||||||
| AddChart2メソッド | |||||||||||
| 説明 | ドキュメントにグラフを追加する
(※)XlChartType列挙体については、Excel VBAリファレンス(Chartsコレクション、Chartオブジェクト編)参照。 |
||||||||||
| 定義 | Function AddChart2([Style As Variant], [XlChartType As XlChartType], [Left As Variant], [Top As Variant], [Width As Variant], [Height As Variant], [NewLayout As Boolean]) As Shape | ||||||||||
| AddConnectorメソッド | |||||||||||
| 説明 | 新しいコネクタを作成する
(※)MsoConnectorType列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Function AddConnector(Type As MsoConnectorType, BeginX As Single, BeginY As Single, EndX As Single, EndY As Single) As Shape | ||||||||||
| AddCurveメソッド | |||||||||||
| 説明 | 新しいベジェ曲線を作成する | ||||||||||
| 定義 | Function AddCurve(SafeArrayOfPoints As Variant) As Shape | ||||||||||
| AddFormControlメソッド | |||||||||||
| 説明 | 新しいフォームコントロールを作成する
(※)XlFormControl列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Function AddFormControl(Type As XlFormControl, Left As Long, Top As Long, Width As Long, Height As Long) As Shape | ||||||||||
| AddLabelメソッド | |||||||||||
| 説明 | 新しいラベルを作成する
(※)MsoTextOrientation列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Function AddLabel(Orientation As MsoTextOrientation, Left As Single, Top As Single, Width As Single, Height As Single) As Shape | ||||||||||
| AddLineメソッド | |||||||||||
| 説明 | ワークシートに行を追加する | ||||||||||
| 定義 | Function AddLine(BeginX As Single, BeginY As Single, EndX As Single, EndY As Single) As Shape | ||||||||||
| AddOLEObjectメソッド | |||||||||||
| 説明 | 新しいOLEオブジェクトを作成する | ||||||||||
| 定義 | Function AddOLEObject([ClassType As Variant], [Filename As Variant], [Link As Boolean = False], [DisplayAsIcon As Boolean = False], [IconFileName As Variant], [IconIndex As Variant], [IconLabel As Variant], [Left As Variant], [Top As Variant], [Width As Variant], [Height As Variant]) As Shape | ||||||||||
| AddPictureメソッド | |||||||||||
| 説明 | 既存のファイルから図オブジェクトを作成する
(※)MsoTriState列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Function AddPicture(Filename As String, LinkToFile As MsoTriState, SaveWithDocument As MsoTriState, Left As Single, Top As Single, Width As Single, Height As Single) As Shape | ||||||||||
| AddPicture2メソッド | |||||||||||
| 説明 | 既存のファイルから図オブジェクトを作成する(圧縮機能あり)
(※)MsoTriState列挙体の値は、以下の通り。 (※)MsoPictureCompress列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Function AddPicture2(Filename As String, LinkToFile As MsoTriState, SaveWithDocument As MsoTriState, Left As Single, Top As Single, [Width As Single], [Height As Single], [Compress As MsoPictureCompress]) As Shape | ||||||||||
| AddPolylineメソッド | |||||||||||
| 説明 | 新しい折れ線または閉じた多角形を作成する | ||||||||||
| 定義 | Function AddPolyline(SafeArrayOfPoints As Variant) As Shape | ||||||||||
| AddShapeメソッド | |||||||||||
| 説明 | ワークシートにオートシェイプを追加する
(※)MsoAutoShapeType列挙体の値は、別表参照。 |
||||||||||
| 定義 | Function AddShape(Type As MsoAutoShapeType, Left As Single, Top As Single, Width As Single, Height As Single) As Shape | ||||||||||
| AddSmartArtメソッド | |||||||||||
| 説明 | 新しいSmartArtグラフィックを作成する | ||||||||||
| 定義 | Function AddSmartArt(Layout As SmartArtLayout, [Left As Variant], [Top As Variant], [Width As Variant], [Height As Variant]) As Shape | ||||||||||
| AddTextboxメソッド | |||||||||||
| 説明 | 新しいテキストボックスを作成する
(※)MsoTextOrientation列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Function AddTextbox(Orientation As MsoTextOrientation, Left As Single, Top As Single, Width As Single, Height As Single) As Shape | ||||||||||
| AddTextEffectメソッド | |||||||||||
| 説明 | 新しいワードアートオブジェクトを作成する
(※)MsoPresetTextEffect列挙体の値は、以下の通り。 (※)MsoTriState列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Function AddTextEffect(PresetTextEffect As MsoPresetTextEffect, Text As String, FontName As String, FontSize As Single, FontBold As MsoTriState, FontItalic As MsoTriState, Left As Single, Top As Single) As Shape | ||||||||||
| Add3DModelメソッド | |||||||||||
| 説明 | 既存のファイルから3Dモデルを作成する
(※)MsoTriState列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Function Add3DModel(Filename As String, [LinkToFile As MsoTriState], [SaveWithDocument As MsoTriState], [Left As Single], [Top As Single], [Width As Single], [Height As Single]) As Shape | ||||||||||
| BuildFreeformメソッド | |||||||||||
| 説明 | 新しいフリーフォームを作成する
(※)MsoEditingType列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Function BuildFreeform(EditingType As MsoEditingType, X1 As Single, Y1 As Single) As FreeformBuilder | ||||||||||
| Itemメソッド | |||||||||||
| 説明 | コレクションから単一のオブジェクトを取得する | ||||||||||
| 定義 | Function Item(Index As Variant) As Shape | ||||||||||
| SelectAllメソッド | |||||||||||
| 説明 | 指定したShapesコレクションの全ての図形を選択する | ||||||||||
| 定義 | Sub SelectAll() | ||||||||||
Shapesコレクションのプロパティ
| Applicationプロパティ(読み取り専用) | |||||||||||
| 説明 | オブジェクトを作成したアプリケーションを表すApplicationオブジェクトを取得 | ||||||||||
| 定義 | Property Application() As Application | ||||||||||
| Countプロパティ(読み取り専用) | |||||||||||
| 説明 | コレクションに含まれるオブジェクトの数を取得 | ||||||||||
| 定義 | Property Count() As Long | ||||||||||
| Creatorプロパティ(読み取り専用) | |||||||||||
| 説明 | オブジェクトを作成したアプリケーションの整数値を取得
(※)XlCreator列挙体は、以下の値のみ。 |
||||||||||
| 定義 | Property Creator() As XlCreator | ||||||||||
| Parentプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定したオブジェクトの親オブジェクトを取得 | ||||||||||
| 定義 | Property Parent() As Object | ||||||||||
| Rangeプロパティ(読み取り専用) | |||||||||||
| 説明 | コレクション内の図形のサブセットを表すShapeRangeオブジェクトを取得 | ||||||||||
| 定義 | Property Range(Index As Variant) As ShapeRange | ||||||||||
■Shapeオブジェクトの詳細
Shapeオブジェクトで提供されているメソッドとプロパティは下表の通りです。
Shapeオブジェクトのメソッド
| Applyメソッド | |||||||||||
| 説明 | PickUpメソッドでコピーした図形の書式設定を適用する | ||||||||||
| 定義 | Sub Apply() | ||||||||||
| Copyメソッド | |||||||||||
| 説明 | オブジェクトをクリップボードにコピーする | ||||||||||
| 定義 | Sub Copy() | ||||||||||
| CopyPictureメソッド | |||||||||||
| 説明 | オブジェクトをクリップボードへ画像としてコピーする
(※)XlPictureAppearance列挙体の値は、以下の通り。 (※)XlCopyPictureFormat列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Sub CopyPicture([Appearance As XlPictureAppearance = xlScreen], [Format As XlCopyPictureFormat = xlPicture]) | ||||||||||
| Cutメソッド | |||||||||||
| 説明 | オブジェクトを切り取ってクリップボードにコピーする | ||||||||||
| 定義 | Sub Cut() | ||||||||||
| Deleteメソッド | |||||||||||
| 説明 | オブジェクトを削除する | ||||||||||
| 定義 | Sub Delete() | ||||||||||
| Duplicateメソッド | |||||||||||
| 説明 | オブジェクトを複製し、複製されたオブジェクトを取得する | ||||||||||
| 定義 | Function Duplicate() As Shape | ||||||||||
| Flipメソッド | |||||||||||
| 説明 | 指定した図形を水平軸または垂直軸を中心として反転する
(※)MsoFlipCmd列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Sub Flip(FlipCmd As MsoFlipCmd) | ||||||||||
| IncrementLeftメソッド | |||||||||||
| 説明 | 指定した図形を水平方向に移動する(移動量はポイント単位で指定) | ||||||||||
| 定義 | Sub IncrementLeft(Increment As Single) | ||||||||||
| IncrementRotationメソッド | |||||||||||
| 説明 | 指定した図形をz軸を中心として回転する(回転角度は度単位で指定) | ||||||||||
| 定義 | Sub IncrementRotation(Increment As Single) | ||||||||||
| IncrementTopメソッド | |||||||||||
| 説明 | 指定した図形を垂直方向に移動する(移動量はポイント単位で指定) | ||||||||||
| 定義 | Sub IncrementTop(Increment As Single) | ||||||||||
| PickUpメソッド | |||||||||||
| 説明 | 指定した図形の書式設定をコピーする | ||||||||||
| 定義 | Sub PickUp() | ||||||||||
| RerouteConnectionsメソッド | |||||||||||
| 説明 | 図形に接続された全てのコネクタを再接続する | ||||||||||
| 定義 | Sub RerouteConnections() | ||||||||||
| ScaleHeightメソッド | |||||||||||
| 説明 | 指定した倍率で図形の高さを拡大または縮小する
(※)MsoTriState列挙体の値は、以下の通り。 (※)MsoScaleFrom列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Sub ScaleHeight(Factor As Single, RelativeToOriginalSize As MsoTriState, [Scale As MsoScaleFrom]) | ||||||||||
| ScaleWidthメソッド | |||||||||||
| 説明 | 指定した倍率で図形の幅を拡大または縮小する
(※)MsoTriState列挙体の値は、以下の通り。 (※)MsoScaleFrom列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Sub ScaleWidth(Factor As Single, RelativeToOriginalSize As MsoTriState, [Scale As MsoScaleFrom]) | ||||||||||
| Selectメソッド | |||||||||||
| 説明 | オブジェクトを選択する | ||||||||||
| 定義 | Sub Select([Replace As Boolean]) | ||||||||||
| SetShapesDefaultPropertiesメソッド | |||||||||||
| 説明 | 指定した図形の書式を既定の書式として設定する | ||||||||||
| 定義 | Sub SetShapesDefaultProperties() | ||||||||||
| Ungroupメソッド | |||||||||||
| 説明 | 指定した図形または図形範囲のグループ化を解除する | ||||||||||
| 定義 | Function Ungroup() As ShapeRange | ||||||||||
| ZOrderメソッド | |||||||||||
| 説明 | 指定した図形のzオーダーを変更する
(※)MsoZOrderCmd列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Sub ZOrder(ZOrderCmd As MsoZOrderCmd) | ||||||||||
Shapeオブジェクトのプロパティ
| Adjustmentsプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形の全ての調整値を表すAdjustmentsオブジェクトを取得 | ||||||||||
| 定義 | Property Adjustments() As Adjustments | ||||||||||
| AlternativeTextプロパティ | |||||||||||
| 説明 | Webページに保存する時に使用する、代替テキスト文字列を設定/取得 | ||||||||||
| 定義 | Property AlternativeText() As String | ||||||||||
| Applicationプロパティ(読み取り専用) | |||||||||||
| 説明 | オブジェクトを作成したアプリケーションを表すApplicationオブジェクトを取得 | ||||||||||
| 定義 | Property Application() As Application | ||||||||||
| AutoShapeTypeプロパティ | |||||||||||
| 説明 | 指定した図形の種類を設定/取得
(※)MsoAutoShapeType列挙体の値は、別表参照。 |
||||||||||
| 定義 | Property AutoShapeType() As MsoAutoShapeType | ||||||||||
| BackgroundStyleプロパティ | |||||||||||
| 説明 | 指定した図形の背景のスタイルを設定/取得
(※)MsoBackgroundStyleIndex列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Property BackgroundStyle() As MsoBackgroundStyleIndex | ||||||||||
| BlackWhiteModeプロパティ | |||||||||||
| 説明 | 白黒表示モードにした場合の図形の表示方法を示す値を設定/取得
(※)MsoBlackWhiteMode列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Property BlackWhiteMode() As MsoBlackWhiteMode | ||||||||||
| BottomRightCellプロパティ(読み取り専用) | |||||||||||
| 説明 | オブジェクトの右下端にあるセルを表すRangeオブジェクトを取得 | ||||||||||
| 定義 | Property BottomRightCell() As Range | ||||||||||
| Calloutプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形の吹き出しの書式を表すCalloutFormatオブジェクトを取得 | ||||||||||
| 定義 | Property Callout() As CalloutFormat | ||||||||||
| Chartプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形に含まれるグラフを表すChartオブジェクトを取得 | ||||||||||
| 定義 | Property Chart() As Chart | ||||||||||
| Childプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形が子図形かどうかを取得(Trueの場合、子図形)
(※)MsoTriState列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Property Child() As MsoTriState | ||||||||||
| ConnectionSiteCountプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形の結合点の数を取得 | ||||||||||
| 定義 | Property ConnectionSiteCount() As Long | ||||||||||
| Connectorプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形がコネクタかどうかを設定/取得(Trueの場合、コネクタ)
(※)MsoTriState列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Property Connector() As MsoTriState | ||||||||||
| ConnectorFormatプロパティ(読み取り専用) | |||||||||||
| 説明 | コネクタの書式を表すConnectorFormatオブジェクトを取得 | ||||||||||
| 定義 | Property ConnectorFormat() As ConnectorFormat | ||||||||||
| ControlFormatプロパティ(読み取り専用) | |||||||||||
| 説明 | コントロールの書式を表すControlFormatオブジェクトを取得 | ||||||||||
| 定義 | Property ControlFormat() As ControlFormat | ||||||||||
| Creatorプロパティ(読み取り専用) | |||||||||||
| 説明 | オブジェクトを作成したアプリケーションの整数値を取得
(※)XlCreator列挙体は、以下の値のみ。 |
||||||||||
| 定義 | Property Creator() As XlCreator | ||||||||||
| Decorativeプロパティ | |||||||||||
| 説明 | 指定したオブジェクトの装飾フラグを設定/取得(Trueの場合、装飾としてマーク)
(※)MsoTriState列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Property Decorative() As MsoTriState | ||||||||||
| Fillプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形の塗りつぶしの書式を表すFillFormatオブジェクトを取得 | ||||||||||
| 定義 | Property Fill() As FillFormat | ||||||||||
| FormControlTypeプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定したフォームコントロールの種類を取得
(※)XlFormControl列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Property FormControlType() As XlFormControl | ||||||||||
| Glowプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形の光彩効果を表すGlowFormatオブジェクトを取得 | ||||||||||
| 定義 | Property Glow() As GlowFormat | ||||||||||
| GraphicStyleプロパティ | |||||||||||
| 説明 | SVGグラフィックのスタイルを設定/取得
(※)MsoGraphicStyleIndex列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Property GraphicStyle() As MsoGraphicStyleIndex | ||||||||||
| GroupItemsプロパティ(読み取り専用) | |||||||||||
| 説明 | グループ化した図形を表すGroupShapesオブジェクトを取得 | ||||||||||
| 定義 | Property GroupItems() As GroupShapes | ||||||||||
| HasChartプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形にグラフが含まれているかどうかを取得(Trueの場合、含まれている)
(※)MsoTriState列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Property HasChart() As MsoTriState | ||||||||||
| HasSmartArtプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形にSmartArtグラフィックが含まれているかどうかを取得(Trueの場合、含まれている)
(※)MsoTriState列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Property HasSmartArt() As MsoTriState | ||||||||||
| Heightプロパティ | |||||||||||
| 説明 | オブジェクトの高さをポイント単位で設定/取得 | ||||||||||
| 定義 | Property Height() As Single | ||||||||||
| HorizontalFlipプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形が左右反転されているかどうかを取得(Trueの場合、左右反転されている)
(※)MsoTriState列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Property HorizontalFlip() As MsoTriState | ||||||||||
| Hyperlinkプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形のハイパーリンクを表すHyperlinkオブジェクトを取得 | ||||||||||
| 定義 | Property Hyperlink() As Hyperlink | ||||||||||
| IDプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定したオブジェクトの種類を表す値を取得 | ||||||||||
| 定義 | Property ID() As Long | ||||||||||
| Leftプロパティ | |||||||||||
| 説明 | オブジェクトの左端から列Aの左端またはグラフ領域の左端までの距離をポイント単位で設定/取得 | ||||||||||
| 定義 | Property Left() As Single | ||||||||||
| Lineプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形の線の書式を表すLineFormatオブジェクトを取得 | ||||||||||
| 定義 | Property Line() As LineFormat | ||||||||||
| LinkFormatプロパティ(読み取り専用) | |||||||||||
| 説明 | リンクされたOLEオブジェクトの書式を表すLinkFormatオブジェクトを取得 | ||||||||||
| 定義 | Property LinkFormat() As LinkFormat | ||||||||||
| LockAspectRatioプロパティ | |||||||||||
| 説明 | 指定した図形がサイズを変更しても元の比率を保持しているかどうかを設定/取得(Trueの場合、保持している)
(※)MsoTriState列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Property LockAspectRatio() As MsoTriState | ||||||||||
| Lockedプロパティ | |||||||||||
| 説明 | オブジェクトがロックされているかどうかを設定/取得(Trueの場合、ロックされている) | ||||||||||
| 定義 | Property Locked() As Boolean | ||||||||||
| Model3Dプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形の3Dモデルの書式を表すModel3DFormatオブジェクトを取得 | ||||||||||
| 定義 | Property Model3D() As Model3DFormat | ||||||||||
| Nameプロパティ | |||||||||||
| 説明 | オブジェクトの名前を設定/取得 | ||||||||||
| 定義 | Property Name() As String | ||||||||||
| Nodesプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形に含まれる全てのノードの書式を表すShapeNodesコレクションを取得 | ||||||||||
| 定義 | Property Nodes() As ShapeNodes | ||||||||||
| OLEFormatプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形に含まれるOLEオブジェクトの書式を表すOLEFormatオブジェクトを取得 | ||||||||||
| 定義 | Property OLEFormat() As OLEFormat | ||||||||||
| OnActionプロパティ | |||||||||||
| 説明 | 指定したオブジェクトを選択する時に実行するマクロの名前を設定/取得 | ||||||||||
| 定義 | Property OnAction() As String | ||||||||||
| Parentプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定したオブジェクトの親オブジェクトを取得 | ||||||||||
| 定義 | Property Parent() As Object | ||||||||||
| ParentGroupプロパティ(読み取り専用) | |||||||||||
| 説明 | 子の図形または子の図形範囲の共通の親の図形を表すShapeオブジェクトを取得 | ||||||||||
| 定義 | Property ParentGroup() As Shape | ||||||||||
| PictureFormatプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形の書式を表すPictureFormatオブジェクトを取得 | ||||||||||
| 定義 | Property PictureFormat() As PictureFormat | ||||||||||
| Placementプロパティ | |||||||||||
| 説明 | オブジェクトがセルにアタッチされる方法を設定/取得
(※)XlPlacement列挙体は、以下の通り。 |
||||||||||
| 定義 | Property Placement() As XlPlacement | ||||||||||
| Reflectionプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形の反射効果の書式を表すReflectionFormatオブジェクトを取得 | ||||||||||
| 定義 | Property Reflection() As ReflectionFormat | ||||||||||
| Rotationプロパティ | |||||||||||
| 説明 | 指定した図形の回転角度を度単位で設定/取得 | ||||||||||
| 定義 | Property Rotation() As Single | ||||||||||
| Shadowプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形の影の書式を表すShadowFormatオブジェクトを取得 | ||||||||||
| 定義 | Property Shadow() As ShadowFormat | ||||||||||
| ShapeStyleプロパティ | |||||||||||
| 説明 | 指定した図形のスタイルを設定/取得
(※)MsoShapeStyleIndex列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Property ShapeStyle() As MsoShapeStyleIndex | ||||||||||
| SmartArtプロパティ(読み取り専用) | |||||||||||
| 説明 | 図形に関連付けられたSmartArtを表すSmartArtオブジェクトを取得 | ||||||||||
| 定義 | Property SmartArt() As SmartArt | ||||||||||
| SoftEdgeプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形のぼかしの書式を表すSoftEdgeFormatオブジェクトを取得 | ||||||||||
| 定義 | Property SoftEdge() As SoftEdgeFormat | ||||||||||
| TextEffectプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形のテキスト効果の書式を表すTextEffectFormatオブジェクトを取得 | ||||||||||
| 定義 | Property TextEffect() As TextEffectFormat | ||||||||||
| TextFrameプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形の配置やアンカーの書式を表すTextFrameオブジェクトを取得 | ||||||||||
| 定義 | Property TextFrame() As TextFrame | ||||||||||
| TextFrame2プロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形のテキスト書式を表すTextFrame2オブジェクトを取得 | ||||||||||
| 定義 | Property TextFrame2() As TextFrame2 | ||||||||||
| ThreeDプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形の3D効果の書式を表すThreeDFormatオブジェクトを取得 | ||||||||||
| 定義 | Property ThreeD() As ThreeDFormat | ||||||||||
| Titleプロパティ | |||||||||||
| 説明 | 指定した図形に関連付けられている代替テキストのタイトルを設定/取得 | ||||||||||
| 定義 | Property Title() As String | ||||||||||
| Topプロパティ | |||||||||||
| 説明 | オブジェクトの上端から行1の上端またはグラフ領域の上端までの距離をポイント単位で設定/取得 | ||||||||||
| 定義 | Property Top() As Single | ||||||||||
| TopLeftCellプロパティ(読み取り専用) | |||||||||||
| 説明 | オブジェクトの左上端にあるセルを表すRangeオブジェクトを取得 | ||||||||||
| 定義 | Property TopLeftCell() As Range | ||||||||||
| Typeプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形の種類を表す値を設定/取得
(※)MsoShapeType列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Property Type() As MsoShapeType | ||||||||||
| VerticalFlipプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定した図形が上下反転されているかどうかを取得(Trueの場合、上下反転されている)
(※)MsoTriState列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Property VerticalFlip() As MsoTriState | ||||||||||
| Verticesプロパティ(読み取り専用) | |||||||||||
| 説明 | 指定したフリーフォームの頂点およびベジェ曲線のコントロールポイントの座標を取得 | ||||||||||
| 定義 | Property Vertices() As Variant | ||||||||||
| Visibleプロパティ | |||||||||||
| 説明 | オブジェクトを表示するかどうかを設定/取得(Trueの場合、表示する)
(※)MsoTriState列挙体の値は、以下の通り。 |
||||||||||
| 定義 | Property Visible() As MsoTriState | ||||||||||
| Widthプロパティ | |||||||||||
| 説明 | オブジェクトの幅をポイント単位で設定/取得 | ||||||||||
| 定義 | Property Width() As Single | ||||||||||
| ZOrderPositionプロパティ(読み取り専用) | |||||||||||
| 説明 | オブジェクトのzオーダー位置を取得 | ||||||||||
| 定義 | Property ZOrderPosition() As Long | ||||||||||
MsoAutoShapeType列挙体
| 名前 | 値 | |
|---|---|---|
| MsoAutoShapeType列挙体 | ||
| msoShape10pointStar | 149 | |
| msoShape12pointStar | 150 | |
| msoShape16pointStar | 94 | |
| msoShape24pointStar | 95 | |
| msoShape32pointStar | 96 | |
| msoShape4pointStar | 91 | |
| msoShape5pointStar | 92 | |
| msoShape6pointStar | 147 | |
| msoShape7pointStar | 148 | |
| msoShape8pointStar | 93 | |
| msoShapeActionButtonBackorPrevious | 129 | |
| msoShapeActionButtonBeginning | 131 | |
| msoShapeActionButtonCustom | 125 | |
| msoShapeActionButtonDocument | 134 | |
| msoShapeActionButtonEnd | 132 | |
| msoShapeActionButtonForwardorNext | 130 | |
| msoShapeActionButtonHelp | 127 | |
| msoShapeActionButtonHome | 126 | |
| msoShapeActionButtonInformation | 128 | |
| msoShapeActionButtonMovie | 136 | |
| msoShapeActionButtonReturn | 133 | |
| msoShapeActionButtonSound | 135 | |
| msoShapeArc | 25 | |
| msoShapeBalloon | 137 | |
| msoShapeBentArrow | 41 | |
| msoShapeBentUpArrow | 44 | |
| msoShapeBevel | 15 | |
| msoShapeBlockArc | 20 | |
| msoShapeCan | 13 | |
| msoShapeChartPlus | 182 | |
| msoShapeChartStar | 181 | |
| msoShapeChartX | 180 | |
| msoShapeChevron | 52 | |
| msoShapeChord | 161 | |
| msoShapeCircularArrow | 60 | |
| msoShapeCloud | 179 | |
| msoShapeCloudCallout | 108 | |
| msoShapeCorner | 162 | |
| msoShapeCornerTabs | 169 | |
| msoShapeCross | 11 | |
| msoShapeCube | 14 | |
| msoShapeCurvedDownArrow | 48 | |
| msoShapeCurvedDownRibbon | 100 | |
| msoShapeCurvedLeftArrow | 46 | |
| msoShapeCurvedRightArrow | 45 | |
| msoShapeCurvedUpArrow | 47 | |
| msoShapeCurvedUpRibbon | 99 | |
| msoShapeDecagon | 144 | |
| msoShapeDiagonalStripe | 141 | |
| msoShapeDiamond | 4 | |
| msoShapeDodecagon | 146 | |
| msoShapeDonut | 18 | |
| msoShapeDoubleBrace | 27 | |
| msoShapeDoubleBracket | 26 | |
| msoShapeDoubleWave | 104 | |
| msoShapeDownArrow | 36 | |
| msoShapeDownArrowCallout | 56 | |
| msoShapeDownRibbon | 98 | |
| msoShapeExplosion1 | 89 | |
| msoShapeExplosion2 | 90 | |
| msoShapeFlowchartAlternateProcess | 62 | |
| msoShapeFlowchartCard | 75 | |
| msoShapeFlowchartCollate | 79 | |
| msoShapeFlowchartConnector | 73 | |
| msoShapeFlowchartData | 64 | |
| msoShapeFlowchartDecision | 63 | |
| msoShapeFlowchartDelay | 84 | |
| msoShapeFlowchartDirectAccessStorage | 87 | |
| msoShapeFlowchartDisplay | 88 | |
| msoShapeFlowchartDocument | 67 | |
| msoShapeFlowchartExtract | 81 | |
| msoShapeFlowchartInternalStorage | 66 | |
| msoShapeFlowchartMagneticDisk | 86 | |
| msoShapeFlowchartManualInput | 71 | |
| msoShapeFlowchartManualOperation | 72 | |
| msoShapeFlowchartMerge | 82 | |
| msoShapeFlowchartMultidocument | 68 | |
| msoShapeFlowchartOfflineStorage | 139 | |
| msoShapeFlowchartOffpageConnector | 74 | |
| msoShapeFlowchartOr | 78 | |
| msoShapeFlowchartPredefinedProcess | 65 | |
| msoShapeFlowchartPreparation | 70 | |
| msoShapeFlowchartProcess | 61 | |
| msoShapeFlowchartPunchedTape | 76 | |
| msoShapeFlowchartSequentialAccessStorage | 85 | |
| msoShapeFlowchartSort | 80 | |
| msoShapeFlowchartStoredData | 83 | |
| msoShapeFlowchartSummingJunction | 77 | |
| msoShapeFlowchartTerminator | 69 | |
| msoShapeFoldedCorner | 16 | |
| msoShapeFrame | 158 | |
| msoShapeFunnel | 174 | |
| msoShapeGear6 | 172 | |
| msoShapeGear9 | 173 | |
| msoShapeHalfFrame | 159 | |
| msoShapeHeart | 21 | |
| msoShapeHeptagon | 145 | |
| msoShapeHexagon | 10 | |
| msoShapeHorizontalScroll | 102 | |
| msoShapeIsoscelesTriangle | 7 | |
| msoShapeLeftArrow | 34 | |
| msoShapeLeftArrowCallout | 54 | |
| msoShapeLeftBrace | 31 | |
| msoShapeLeftBracket | 29 | |
| msoShapeLeftCircularArrow | 176 | |
| msoShapeLeftRightArrow | 37 | |
| msoShapeLeftRightArrowCallout | 57 | |
| msoShapeLeftRightCircularArrow | 177 | |
| msoShapeLeftRightRibbon | 140 | |
| msoShapeLeftRightUpArrow | 40 | |
| msoShapeLeftUpArrow | 43 | |
| msoShapeLightningBolt | 22 | |
| msoShapeLineCallout1 | 109 | |
| msoShapeLineCallout1AccentBar | 113 | |
| msoShapeLineCallout1BorderandAccentBar | 121 | |
| msoShapeLineCallout1NoBorder | 117 | |
| msoShapeLineCallout2 | 110 | |
| msoShapeLineCallout2AccentBar | 114 | |
| msoShapeLineCallout2BorderandAccentBar | 122 | |
| msoShapeLineCallout2NoBorder | 118 | |
| msoShapeLineCallout3 | 111 | |
| msoShapeLineCallout3AccentBar | 115 | |
| msoShapeLineCallout3BorderandAccentBar | 123 | |
| msoShapeLineCallout3NoBorder | 119 | |
| msoShapeLineCallout4 | 112 | |
| msoShapeLineCallout4AccentBar | 116 | |
| msoShapeLineCallout4BorderandAccentBar | 124 | |
| msoShapeLineCallout4NoBorder | 120 | |
| msoShapeLineInverse | 183 | |
| msoShapeMathDivide | 166 | |
| msoShapeMathEqual | 167 | |
| msoShapeMathMinus | 164 | |
| msoShapeMathMultiply | 165 | |
| msoShapeMathNotEqual | 168 | |
| msoShapeMathPlus | 163 | |
| msoShapeMixed | -2 | |
| msoShapeMoon | 24 | |
| msoShapeNonIsoscelesTrapezoid | 143 | |
| msoShapeNoSymbol | 19 | |
| msoShapeNotchedRightArrow | 50 | |
| msoShapeNotPrimitive | 138 | |
| msoShapeOctagon | 6 | |
| msoShapeOval | 9 | |
| msoShapeOvalCallout | 107 | |
| msoShapeParallelogram | 2 | |
| msoShapePentagon | 51 | |
| msoShapePie | 142 | |
| msoShapePieWedge | 175 | |
| msoShapePlaque | 28 | |
| msoShapePlaqueTabs | 171 | |
| msoShapeQuadArrow | 39 | |
| msoShapeQuadArrowCallout | 59 | |
| msoShapeRectangle | 1 | |
| msoShapeRectangularCallout | 105 | |
| msoShapeRegularPentagon | 12 | |
| msoShapeRightArrow | 33 | |
| msoShapeRightArrowCallout | 53 | |
| msoShapeRightBrace | 32 | |
| msoShapeRightBracket | 30 | |
| msoShapeRightTriangle | 8 | |
| msoShapeRound1Rectangle | 151 | |
| msoShapeRound2DiagRectangle | 153 | |
| msoShapeRound2SameRectangle | 152 | |
| msoShapeRoundedRectangle | 5 | |
| msoShapeRoundedRectangularCallout | 106 | |
| msoShapeSmileyFace | 17 | |
| msoShapeSnip1Rectangle | 155 | |
| msoShapeSnip2DiagRectangle | 157 | |
| msoShapeSnip2SameRectangle | 156 | |
| msoShapeSnipRoundRectangle | 154 | |
| msoShapeSquareTabs | 170 | |
| msoShapeStripedRightArrow | 49 | |
| msoShapeSun | 23 | |
| msoShapeSwooshArrow | 178 | |
| msoShapeTear | 160 | |
| msoShapeTrapezoid | 3 | |
| msoShapeUpArrow | 35 | |
| msoShapeUpArrowCallout | 55 | |
| msoShapeUpDownArrow | 38 | |
| msoShapeUpDownArrowCallout | 58 | |
| msoShapeUpRibbon | 97 | |
| msoShapeUTurnArrow | 42 | |
| msoShapeVerticalScroll | 101 | |
| msoShapeWave | 103 | |
出版社:インプレス
発売日:2022/3/23
単行本(ソフトカバー):A5判/912ページ
出版社:技術評論社
発売日:2021/1/9
単行本(ソフトカバー):A5判/800ページ
出版社:技術評論社
発売日:2019/11/25
単行本(ソフトカバー):B5変形判/576ページ





ディスカッション
コメント一覧
まだ、コメントがありません