public LiveRenderable(IAnsiConsole console) { _console = console ?? throw new ArgumentNullException(nameof(console)); Overflow = VerticalOverflow.Ellipsis; OverflowCropping = VerticalOverflowCropping.Top; }
/// <summary> /// Sets the vertical overflow cropping strategy. /// </summary> /// <param name="live">The <see cref="LiveDisplay"/> instance.</param> /// <param name="cropping">The overflow cropping strategy to use.</param> /// <returns>The same instance so that multiple calls can be chained.</returns> public static LiveDisplay Cropping(this LiveDisplay live, VerticalOverflowCropping cropping) { if (live is null) { throw new ArgumentNullException(nameof(live)); } live.Cropping = cropping; return(live); }
internal void SetOverflow(VerticalOverflow overflow, VerticalOverflowCropping cropping) { Live.Overflow = overflow; Live.OverflowCropping = cropping; }