Exemple #1
0
        public CTTypesetter(NSAttributedString value, CTTypesetterOptions options)
        {
            if (value == null)
                throw ConstructorError.ArgumentNull (this, "value");

            handle = CTTypesetterCreateWithAttributedStringAndOptions (value.Handle,
                    options == null ? IntPtr.Zero : options.Dictionary.Handle);

            if (handle == IntPtr.Zero)
                throw ConstructorError.Unknown (this);
        }
Exemple #2
0
        public CTTypesetter(NSAttributedString value, CTTypesetterOptions options)
        {
            if (value == null)
            {
                throw ConstructorError.ArgumentNull(this, "value");
            }

            handle = CTTypesetterCreateWithAttributedStringAndOptions(value.Handle,
                                                                      options == null ? IntPtr.Zero : options.Dictionary.Handle);

            if (handle == IntPtr.Zero)
            {
                throw ConstructorError.Unknown(this);
            }
        }