PlacementRectangle Property

ToolTip.PlacementRectangle Property


Gets or sets the rectangular area relative to which the ToolTip control is positioned when it opens.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public Rect PlacementRectangle { get; set; }

Property Value

Type: System.Windows.Rect

The Rect structure that defines the rectangle that is used to position the ToolTip control. The default is Empty.

You can position ToolTip by setting the PlacementTarget, PlacementRectangle, Placement, HorizontalOffset, and VerticalOffsetProperty properties. These properties behave the same as they do for a Popup. For more information, see Popup Placement Behavior.

Identifier field


Metadata properties set to true


The following example shows how to create and position a ToolTip.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft