Exemplo n.º 1
0
 public CTFontDescriptor WithAttributes(CTFontDescriptorAttributes attributes)
 {
     if (attributes == null)
         throw new ArgumentNullException ("attributes");
     return CreateDescriptor (CTFontDescriptorCreateCopyWithAttributes (handle, attributes.Dictionary.Handle));
 }
Exemplo n.º 2
0
		public CTFontDescriptor WithAttributes (CTFontDescriptorAttributes attributes)
		{
			if (attributes == null)
				throw new ArgumentNullException ("attributes");
			return CreateDescriptor (CTFontDescriptorCreateCopyWithAttributes (handle, attributes.Dictionary.Handle));
		}
Exemplo n.º 3
0
 public CTFontDescriptor(CTFontDescriptorAttributes attributes)
 {
     if (attributes == null)
         throw ConstructorError.ArgumentNull (this, "attributes");
     handle = CTFontDescriptorCreateWithAttributes (attributes.Dictionary.Handle);
     if (handle == IntPtr.Zero)
         throw ConstructorError.Unknown (this);
 }