PowerArgs.Cli.Label.Label C# (CSharp) Method

Label() public method

Creates a new label
public Label ( ) : System
return System
        public Label()
        {
            Height = 1;
            this.Mode = LabelRenderMode.SingleLineAutoSize;
            this.CanFocus = false;
            lines = new List<List<ConsoleCharacter>>();

            this.SubscribeForLifetime(nameof(Text), HandleTextChanged, this.LifetimeManager);
            this.SubscribeForLifetime(nameof(Mode), HandleTextChanged, this.LifetimeManager);
            this.SubscribeForLifetime(nameof(MaxHeight), HandleTextChanged, this.LifetimeManager);
            this.SubscribeForLifetime(nameof(MaxWidth), HandleTextChanged, this.LifetimeManager);
            this.SynchronizeForLifetime(nameof(Bounds), HandleTextChanged, this.LifetimeManager);
        }