Partager via


IGeometryHost Interface

Defines the interface of the geometry's container.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
Public Interface IGeometryHost
public interface IGeometryHost
public interface class IGeometryHost
type IGeometryHost =  interface end
public interface IGeometryHost

The IGeometryHost type exposes the following members.

Properties

  Name Description
Public property GeometryBackgroundBrushId Gets the brush resource id that will be used to fill the background of the geometry.
Public property GeometryBoundingBox Gets the bounding box of the geometry.
Public property GeometryHasFilledBackground Gets a value indicating whether the background of the geometry will be filled.
Public property GeometryHasOutline Gets a value indicating whether the outline of the geometry will be drawn.
Public property GeometryHasShadow Gets a value indicating whether the geometry displays a shadow.
Public property GeometryOutlinePenId Gets the pen resource id that will be used to draw the outline of the geometry.
Public property GeometryStyleSet Gets the style set to use for the geometry.

Top

Methods

  Name Description
Public method ExcludeGeometryFromClipRegion Excludes from the clipping region this geometry, including geometries of descendant IGeometryHost objects.
Public method TranslateGeometryToAbsoluteBounds Translates a rectangle from coordinates relative to the top-left of the IGeometryHost's parent to absolute world coordinates.
Public method TranslateGeometryToRelativeBounds Translates a rectangle from absolute world coordinates to coordinates relative to the top-left of the IGeometryHost's parent.
Public method UpdateGeometryLuminosity(DiagramClientView, Brush) Modifies the luminosity of the specified brush.
Public method UpdateGeometryLuminosity(DiagramClientView, Pen) Modifies the luminosity of the specified pen.

Top

See Also

Reference

Microsoft.VisualStudio.Modeling.Diagrams Namespace