次の方法で共有


ShapeElement.Center プロパティ

図形の中央のポイントを取得します。

名前空間:  Microsoft.VisualStudio.Modeling.Diagrams
アセンブリ:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 内)

構文

'宣言
Public ReadOnly Property Center As PointD
public PointD Center { get; }

プロパティ値

型 : Microsoft.VisualStudio.Modeling.Diagrams.PointD
図形の境界の中央の点。

解説

図形の境界は図形の中央がどこにあるかを判断します。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

ShapeElement クラス

Microsoft.VisualStudio.Modeling.Diagrams 名前空間