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

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

Do not instantiate any widgets directly. Use SdkTrayManager.
public Label ( String name, String caption, Real width ) : System
name String
caption String
width Real
Результат System
		public Label( String name, String caption, Real width )
		{
			element = OverlayManager.Instance.Elements.CreateElementFromTemplate( "SdkTrays/Label", "BorderPanel", name );
			this.textArea = (TextArea)( (OverlayElementContainer)element ).Children[ Name + "/LabelCaption" ];
			this.textArea.Text = caption;
			this.Caption = caption;
			if ( width <= 0 )
				this.isFitToTray = true;
			else
			{
				this.isFitToTray = false;
				element.Width = width;
			}
		}