Axiom.Samples.TextBox.RefitContents C# (CSharp) Метод

RefitContents() публичный Метод

Makes adjustments based on new padding, size, or alignment info.
public RefitContents ( ) : void
Результат void
		public void RefitContents()
		{
			this.scrollTrack.Height = element.Height - this.captionBar.Height - 20;
			this.scrollTrack.Top = this.captionBar.Height + 10;

			this.textArea.Top = this.captionBar.Height + this.padding - 5;
			if ( this.textArea.HorizontalAlignment == HorizontalAlignment.Right )
				this.textArea.Left = -this.padding + this.scrollTrack.Left;
			else if ( this.textArea.HorizontalAlignment == HorizontalAlignment.Left )
				this.textArea.Left = this.padding;
			else
				this.textArea.Left = this.scrollTrack.Left / 2;

			Text = this.Text;
		}