AdornerPlacementCollection.PositionRelativeToContentWidth Method (Double, Double, ViewItem)
Adds a placement term to this group that positions the adorner panel relative to the content's width.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Sub PositionRelativeToContentWidth ( _
factor As Double, _
offset As Double, _
relativeTo As ViewItem _
)
public void PositionRelativeToContentWidth(
double factor,
double offset,
ViewItem relativeTo
)
public:
void PositionRelativeToContentWidth(
double factor,
double offset,
ViewItem^ relativeTo
)
member PositionRelativeToContentWidth :
factor:float *
offset:float *
relativeTo:ViewItem -> unit
public function PositionRelativeToContentWidth(
factor : double,
offset : double,
relativeTo : ViewItem
)
Parameters
- factor
Type: System.Double
A factor that is multiplied against the content's width.
- offset
Type: System.Double
An offset that is added to the result.
- relativeTo
Type: Microsoft.Windows.Design.Interaction.ViewItem
If provided, the position is relative to the element's width, rather than the width of the content. This is an optional element.
.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
PositionRelativeToContentWidth Overload
Microsoft.Windows.Design.Interaction Namespace
PrimarySelectionAdornerProvider