Skip to content

NinePatchRect AxisStretchModeEnum

Eduard Gushchin edited this page Jul 1, 2026 · 3 revisions

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

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

Overview

Identifies how the center segment of a nine-patch axis is expanded.

Syntax

public enum Electron2D.NinePatchRect.AxisStretchModeEnum : System.IComparable, System.IConvertible, System.IFormattable, System.ISpanFormattable

Godot 4.7 C# profile compatibility

Profile: Electron2D 0.1.0 2D
Status: Supported / Parity verified
Out of profile: no
Godot reference: NinePatchRect.AxisStretchMode

Stretch, tile and tile-fit center-axis expansion modes for NinePatchRect.

Remarks

The mode applies only to the middle column or row. Corners keep their destination margin sizes.

Thread Safety

This enum is immutable and is safe to use from any thread.

Since

This enum is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.NinePatchRect.AxisStretchHorizontal
  • Electron2D.NinePatchRect.AxisStretchVertical

Members

Member Kind Summary
Stretch Enum value Stretches the center segment to fill the destination span.
Tile Enum value Tiles the center segment using its source size.
TileFit Enum value Tiles the center segment with adjusted tile size so it fits exactly.

Member Details

Stretch

Kind: Enum value

public const Electron2D.NinePatchRect.AxisStretchModeEnum Stretch

Summary

Stretches the center segment to fill the destination span.

Remarks

Use this value for ordinary scalable panels.

Since

This value is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.NinePatchRect.AxisStretchModeEnum

Tile

Kind: Enum value

public const Electron2D.NinePatchRect.AxisStretchModeEnum Tile

Summary

Tiles the center segment using its source size.

Remarks

Partial edge tiles use a clipped source segment.

Since

This value is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.NinePatchRect.AxisStretchModeEnum

TileFit

Kind: Enum value

public const Electron2D.NinePatchRect.AxisStretchModeEnum TileFit

Summary

Tiles the center segment with adjusted tile size so it fits exactly.

Remarks

Use this value to avoid clipped final tiles.

Since

This value is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.NinePatchRect.AxisStretchModeEnum

Clone this wiki locally