Struct HVDropDownAlignment
Represents a horizontal and vertical drop-down alignment.
public readonly struct HVDropDownAlignment
Constructors
- HVDropDownAlignment()
Initializes a new instance of the HVDropDownAlignment struct with default horizontal and vertical alignments.
- HVDropDownAlignment(PointD)
Initializes a new instance of the HVDropDownAlignment struct with the specified position.
- HVDropDownAlignment(DropDownAlignment, DropDownAlignment)
Initializes a new instance of the HVDropDownAlignment struct with the specified horizontal and vertical alignments.
- HVDropDownAlignment(DropDownAlignment, DropDownAlignment, PointD)
Initializes a new instance of the HVDropDownAlignment class with the specified horizontal and vertical alignment, and position.
- HVDropDownAlignment(float, float)
Initializes a new instance of the HVDropDownAlignment struct with the specified horizontal and vertical position.
Properties
- BeforeEnd
Gets a predefined alignment configuration where both horizontal and vertical alignments are set to BeforeEnd.
- BottomRight
Gets a value that aligns the dropdown to the bottom-right corner relative to its anchor element.
- Center
Gets a predefined alignment configuration where both horizontal and vertical alignments are centered.
- Default
Gets the default drop-down alignment.
- Horizontal
Gets the horizontal drop-down alignment.
- IsHorzPositionNegative
Gets a value indicating whether the horizontal position is negative. Returns
trueif IsHorzPositionUsed istrueand Position has a negative X coordinate.
- IsHorzPositionUsed
Gets a value indicating whether the horizontal alignment is set to Position.
- IsPositionNegative
Gets a value indicating whether either the horizontal or vertical position is negative. Returns
trueif IsPositionUsed istrueand Position has a negative X or Y coordinate.
- IsPositionUsed
Gets a value indicating whether either the horizontal or vertical alignment is set to Position.
- IsVertPositionNegative
Gets a value indicating whether the vertical position is negative. Returns
trueif IsVertPositionUsed istrueand Position has a negative Y coordinate.
- IsVertPositionUsed
Gets a value indicating whether the vertical alignment is set to Position.
- Position
Gets the position of the object in a two-dimensional space. It is used when Horizontal or Vertical alignment is set to Position.
- TopRight
Gets a predefined alignment configuration where position is aligned to the top-right corner.
- Vertical
Gets the vertical drop-down alignment.
Methods
- ToString()
Returns a string that represents the current object.
Operators
- implicit operator HVDropDownAlignment(PointD)
Defines an implicit conversion from PointD to HVDropDownAlignment.