AdornerPlacementCollection.PositionRelativeToAdornerHeight Method (Double, Double)
Adds a placement term that positions the adorner panel relative to the adorner's height.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Sub PositionRelativeToAdornerHeight ( _
factor As Double, _
offset As Double _
)
public void PositionRelativeToAdornerHeight(
double factor,
double offset
)
public:
void PositionRelativeToAdornerHeight(
double factor,
double offset
)
member PositionRelativeToAdornerHeight :
factor:float *
offset:float -> unit
public function PositionRelativeToAdornerHeight(
factor : double,
offset : double
)
Parameters
- factor
Type: System.Double
A factor that is multiplied against the adorner's height.
- offset
Type: System.Double
An offset that is added to the result.
Remarks
Values for factor and offset that are less than zero move the position of the AdornerPanel upward on the design surface.
Examples
The following code example shows how to use the PositionRelativeToAdornerHeight method to specify the position of an adorner in an adorner panel. For more information, see Walkthrough: Creating a Design-time Adorner.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
AdornerPlacementCollection Class
PositionRelativeToAdornerHeight Overload
Microsoft.Windows.Design.Interaction Namespace
PrimarySelectionAdornerProvider