Skip to content

VerticalAlignment

Eduard Gushchin edited this page Jun 21, 2026 · 6 revisions

Home | API by Category | Complete API Index | API Compatibility

Field Value
Full name Electron2D.VerticalAlignment
Namespace Electron2D
Kind enum
Category UI and Text

Overview

Identifies the vertical alignment used by controls that draw text.

Syntax

public enum Electron2D.VerticalAlignment : System.IComparable, System.IConvertible, System.IFormattable, System.ISpanFormattable

Remarks

This type is part of the Electron2D 0.1.0 Preview public API.

Thread Safety

This enum is immutable and can be used from any thread.

Since

This enum is available since Electron2D 0.1.0 Preview.

Members

Member Kind Summary
Bottom Enum value Aligns content to the bottom edge.
Center Enum value Centers content vertically.
Fill Enum value Uses fill alignment. Electron2D 0.1.0 Preview treats this like top alignment for single-line labels.
Top Enum value Aligns content to the top edge.

Member Details

Bottom

Kind: Enum value

public const Electron2D.VerticalAlignment Bottom

Summary

Aligns content to the bottom edge.

Remarks

Use this value with APIs that accept VerticalAlignment.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.VerticalAlignment

Center

Kind: Enum value

public const Electron2D.VerticalAlignment Center

Summary

Centers content vertically.

Remarks

Use this value with APIs that accept VerticalAlignment.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.VerticalAlignment

Fill

Kind: Enum value

public const Electron2D.VerticalAlignment Fill

Summary

Uses fill alignment.

Electron2D 0.1.0 Preview treats this like top alignment for single-line labels.

Remarks

Use this value with APIs that accept VerticalAlignment.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.VerticalAlignment

Top

Kind: Enum value

public const Electron2D.VerticalAlignment Top

Summary

Aligns content to the top edge.

Remarks

Use this value with APIs that accept VerticalAlignment.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.VerticalAlignment

Clone this wiki locally