AdornerPlacementCollection.PositionRelativeToAdornerWidth Method (Double, Double)

Adds a placement term that positions the adorner panel relative to the adorner's width.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Sub PositionRelativeToAdornerWidth ( _
    factor As Double, _
    offset As Double _
)
public void PositionRelativeToAdornerWidth(
    double factor,
    double offset
)
public:
void PositionRelativeToAdornerWidth(
    double factor, 
    double offset
)
member PositionRelativeToAdornerWidth : 
        factor:float * 
        offset:float -> unit 
public function PositionRelativeToAdornerWidth(
    factor : double, 
    offset : double
)

Parameters

  • factor
    Type: System.Double
    A factor that is multiplied against the adorner's width.
  • 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 to the left on the design surface.

.NET Framework Security

See Also

Reference

AdornerPlacementCollection Class

PositionRelativeToAdornerWidth Overload

Microsoft.Windows.Design.Interaction Namespace

AdornerPanel

PrimarySelectionAdornerProvider

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture