Пример #1
0
		/// <summary>
		/// Allocates a new FontMetrics object, and then calls getFontMetrics(fm)
		/// with it, returning the object.
		/// </summary>
		/// <remarks>
		/// Allocates a new FontMetrics object, and then calls getFontMetrics(fm)
		/// with it, returning the object.
		/// </remarks>
		public virtual android.graphics.Paint.FontMetrics getFontMetrics()
		{
			android.graphics.Paint.FontMetrics fm = new android.graphics.Paint.FontMetrics();
			getFontMetrics(fm);
			return fm;
		}
Пример #2
0
				public static android.graphics.Paint.FontMetrics NativeToManaged(System.IntPtr ptr
					)
				{
					if (ptr == System.IntPtr.Zero)
					{
						return null;
					}
					FontMetrics_Struct obj = (FontMetrics_Struct)Marshal.PtrToStructure(ptr, typeof(FontMetrics_Struct
						));
					android.graphics.Paint.FontMetrics arg = new android.graphics.Paint.FontMetrics();
					arg.top = obj.top;
					arg.ascent = obj.ascent;
					arg.descent = obj.descent;
					arg.bottom = obj.bottom;
					arg.leading = obj.leading;
					return arg;
				}