public CGSize SuggestFrameSize(NSRange stringRange, CTFrameAttributes frameAttributes, CGSize constraints, out NSRange fitRange) { return(CTFramesetterSuggestFrameSizeWithConstraints( handle, stringRange, frameAttributes == null ? IntPtr.Zero : frameAttributes.Dictionary.Handle, constraints, out fitRange)); }
public CTFrame GetFrame(NSRange stringRange, CGPath path, CTFrameAttributes frameAttributes) { if (path == null) { throw new ArgumentNullException("path"); } var frame = CTFramesetterCreateFrame(handle, stringRange, path.Handle, frameAttributes == null ? IntPtr.Zero : frameAttributes.Dictionary.Handle); if (frame == IntPtr.Zero) { return(null); } return(new CTFrame(frame, true)); }
public CTFrame GetFrame(NSRange stringRange, CGPath path, CTFrameAttributes frameAttributes) { if (path == null) throw new ArgumentNullException ("path"); var frame = CTFramesetterCreateFrame (handle, stringRange, path.Handle, frameAttributes == null ? IntPtr.Zero : frameAttributes.Dictionary.Handle); if (frame == IntPtr.Zero) return null; return new CTFrame (frame, true); }
public CGSize SuggestFrameSize(NSRange stringRange, CTFrameAttributes frameAttributes, CGSize constraints, out NSRange fitRange) { return CTFramesetterSuggestFrameSizeWithConstraints ( handle, stringRange, frameAttributes == null ? IntPtr.Zero : frameAttributes.Dictionary.Handle, constraints, out fitRange); }