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
ownerobjectThe view in which the dialog is to be aligned.
alignHVAlignment?The horizontal and vertical alignment to apply.
originSimplePopupDialog.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
ownerobjectThe view in which the dialog is to be aligned.
horzHorizontalAlignmentThe horizontal alignment to apply.
vertVerticalAlignmentThe vertical alignment to apply.
originSimplePopupDialog.AlignOriginSpecifies the origin point used for alignment calculations.
Returns
- bool
True if the alignment was successfully applied; otherwise, false.