Xwt.Drawing.TextLayout.GetSize C# (CSharp) Method

GetSize() public method

measures the text if Width is other than -1, it measures the height according to Width Height is ignored
public GetSize ( ) : Size
return Size
		public Size GetSize ()
		{
			return handler.GetSize (Backend);
		}

Usage Example

Ejemplo n.º 1
0
		internal protected override void OptionsChanged ()
		{
			var layout = new TextLayout (Editor);
			layout.Font = Editor.Options.Font;
			layout.Text = ".";
//			int height;
			charWidth = layout.GetSize ().Width;
			layout.Dispose ();
		}
All Usage Examples Of Xwt.Drawing.TextLayout::GetSize