Table of Contents

Struct HVDropDownAlignment

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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)

Represents the alignment settings for a dropdown positioned at a specific point.

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.

Properties

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 true if IsHorzPositionUsed is true and 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 true if IsPositionUsed is true and 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 true if IsVertPositionUsed is true and 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.

Vertical

Gets the vertical drop-down alignment.

Methods

ToString()

Returns a string that represents the current object.