Method SetAlignedPosition
SetAlignedPosition(object?, HVAlignment?, AlignOrigin)
Sets the aligned position of the dialog within the specified layout using the provided alignment.
public virtual bool SetAlignedPosition(object? owner, HVAlignment? align, SimplePopupDialog.AlignOrigin origin = AlignOrigin.Owner)
Parameters
owner
objectThe view in which the dialog is to be aligned.
align
HVAlignment?The horizontal and vertical alignment to apply.
origin
SimplePopupDialog.AlignOriginSpecifies the origin point used for alignment calculations.
Returns
- bool
True if the alignment was successfully applied; otherwise, false.
SetAlignedPosition(object?, HorizontalAlignment, VerticalAlignment, AlignOrigin)
Sets the aligned position of the dialog within the specified layout using the provided alignment.
public virtual bool SetAlignedPosition(object? owner, HorizontalAlignment horz, VerticalAlignment vert, SimplePopupDialog.AlignOrigin origin = AlignOrigin.Owner)
Parameters
owner
objectThe view in which the dialog is to be aligned.
horz
HorizontalAlignmentThe horizontal alignment to apply.
vert
VerticalAlignmentThe vertical alignment to apply.
origin
SimplePopupDialog.AlignOriginSpecifies the origin point used for alignment calculations.
Returns
- bool
True if the alignment was successfully applied; otherwise, false.