コード例 #1
0
 public SizeF SuggestFrameSize(NSRange stringRange, CTFrameAttributes frameAttributes, SizeF constraints, out NSRange fitRange)
 {
     return(CTFramesetterSuggestFrameSizeWithConstraints(
                handle, stringRange,
                frameAttributes == null ? IntPtr.Zero : frameAttributes.Dictionary.Handle,
                constraints, out fitRange));
 }
コード例 #2
0
ファイル: CTFramesetter.cs プロジェクト: polipo/maccore
		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);
		}
コード例 #3
0
        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));
        }
コード例 #4
0
		public SizeF SuggestFrameSize (NSRange stringRange, CTFrameAttributes frameAttributes, SizeF constraints, out NSRange fitRange)
		{
			return CTFramesetterSuggestFrameSizeWithConstraints (
					handle, stringRange,
					frameAttributes == null ? IntPtr.Zero : frameAttributes.Dictionary.Handle,
					constraints, out fitRange);
		}