MonoMac.CoreGraphics.CGPath.AddRect C# (CSharp) Method

AddRect() public method

public AddRect ( CGAffineTransform transform, RectangleF rect ) : void
transform CGAffineTransform
rect System.Drawing.RectangleF
return void
		public void AddRect (CGAffineTransform transform, RectangleF rect)
		{
			CGPathAddRect (handle, ref transform, rect);
		}
		[DllImport (Constants.CoreGraphicsLibrary)]

Same methods

CGPath::AddRect ( RectangleF rect ) : void

Usage Example

Ejemplo n.º 1
0
		static CTFrame CreateFrame (LayoutInfo li)
		{
			if (string.IsNullOrEmpty (li.Text))
				return null;

			using (CTFramesetter framesetter = new CTFramesetter (CreateAttributedString (li))) {
				CGPath path = new CGPath ();
				bool ellipsize = li.Width.HasValue && li.TextTrimming == TextTrimming.WordElipsis;
				path.AddRect (new RectangleF (0, 0, li.Width.HasValue && !ellipsize ? li.Width.Value : float.MaxValue, li.Height ?? float.MaxValue));

				return framesetter.GetFrame (new NSRange (0, li.Text.Length), path, null);
			}
		}
All Usage Examples Of MonoMac.CoreGraphics.CGPath::AddRect