Property InsertionPoint
InsertionPoint
Gets or sets the cursor position within the time field, constrained to valid digit positions.
public override int InsertionPoint { get; set; }
Property Value
- int
The cursor position, clamped to the range [1, FieldLength]. Unlike InsertionPoint, position 0 is not accessible because it contains a leading space.
Remarks
This override constrains the cursor to valid editing positions within the time format:
- Minimum position is 1 (first digit of hours)
- Maximum position is FieldLength (5 for short format, 8 for long format)
Note: This property only enforces bounds; it does not skip separator characters. Use Terminal.Gui.Views.TimeField.AdjustInsertionPoint(System.Int32,System.Boolean) after setting to ensure the cursor is on a digit position.
- See Also
-
Terminal.Gui.Views.TimeField.AdjustInsertionPoint(System.Int32,System.Boolean)Terminal.Gui.Views.TimeField.FieldLength