unsafe byte GetByteValue(CTParagraphStyleSpecifier spec) { byte value; if (!CTParagraphStyleGetValueForSpecifier(handle, spec, sizeof(byte), &value)) { throw new InvalidOperationException("Unable to get property value."); } return(value); }
unsafe float GetFloatValue(CTParagraphStyleSpecifier spec) { float value; if (!CTParagraphStyleGetValueForSpecifier(handle, spec, sizeof(float), &value)) { throw new InvalidOperationException("Unable to get property value."); } return(value); }
static CTParagraphStyleSpecifierValue CreateValue(CTParagraphStyleSpecifier spec, IEnumerable <CTTextTab> value) { var handles = new List <IntPtr>(); foreach (var ts in value) { handles.Add(ts.Handle); } return(new CTParagraphStyleSpecifierIntPtrsValue(spec, handles.ToArray())); }
GetFloatValue(CTParagraphStyleSpecifier spec) { nfloat value; if (!CTParagraphStyleGetValueForSpecifier(handle, spec, (nuint)sizeof(nfloat), &value)) { throw new InvalidOperationException("Unable to get property value."); } return (#if !XAMCORE_4_0 (float) #endif value); }
unsafe float GetFloatValue(CTParagraphStyleSpecifier spec) #endif { nfloat value; if (!CTParagraphStyleGetValueForSpecifier(Handle, spec, (nuint)sizeof(nfloat), &value)) { throw new InvalidOperationException("Unable to get property value."); } #if NET return(value); #else return((float)value); #endif }
public CTParagraphStyleSpecifierSingleValue(CTParagraphStyleSpecifier spec, nfloat value) : base(spec) { this.value = value; }
public CTParagraphStyleSpecifierNativeIntValue(CTParagraphStyleSpecifier spec, nuint value) : base(spec) { this.value = value; }
public CTParagraphStyleSpecifierByteValue(CTParagraphStyleSpecifier spec, byte value) : base(spec) { this.value = value; }
protected CTParagraphStyleSpecifierValue(CTParagraphStyleSpecifier spec) { Spec = spec; }
static CTParagraphStyleSpecifierValue CreateValue(CTParagraphStyleSpecifier spec, nuint value) { return new CTParagraphStyleSpecifierNativeIntValue (spec, value); }
static CTParagraphStyleSpecifierValue CreateValue(CTParagraphStyleSpecifier spec, nuint value) { return(new CTParagraphStyleSpecifierNativeIntValue(spec, value)); }
public CTParagraphStyleSpecifierByteValue (CTParagraphStyleSpecifier spec, byte value) : base (spec) { this.value = value; }
static CTParagraphStyleSpecifierValue CreateValue (CTParagraphStyleSpecifier spec, byte value) { return new CTParagraphStyleSpecifierByteValue (spec, value); }
static CTParagraphStyleSpecifierValue CreateValue(CTParagraphStyleSpecifier spec, byte value) { return(new CTParagraphStyleSpecifierByteValue(spec, value)); }
static CTParagraphStyleSpecifierValue CreateValue (CTParagraphStyleSpecifier spec, IEnumerable<CTTextTab> value) { var handles = new List<IntPtr>(); foreach (var ts in value) handles.Add (ts.Handle); return new CTParagraphStyleSpecifierIntPtrsValue (spec, handles.ToArray ()); }
public CTParagraphStyleSpecifierIntPtrsValue (CTParagraphStyleSpecifier spec, IntPtr[] value) : base (spec) { this.value = CFArray.FromIntPtrs (value); }
public CTParagraphStyleSpecifierSingleValue (CTParagraphStyleSpecifier spec, float value) : base (spec) { this.value = value; }
public CTParagraphStyleSpecifierIntPtrsValue(CTParagraphStyleSpecifier spec, IntPtr[] value) : base(spec) { this.value = CFArray.FromIntPtrs(value); }
static CTParagraphStyleSpecifierValue CreateValue (CTParagraphStyleSpecifier spec, float value) { return new CTParagraphStyleSpecifierSingleValue (spec, value); }
protected CTParagraphStyleSpecifierValue (CTParagraphStyleSpecifier spec) { Spec = spec; }
static CTParagraphStyleSpecifierValue CreateValue(CTParagraphStyleSpecifier spec, nfloat value) { return(new CTParagraphStyleSpecifierSingleValue(spec, value)); }
static extern unsafe bool CTParagraphStyleGetValueForSpecifier (IntPtr paragraphStyle, CTParagraphStyleSpecifier spec, uint valueBufferSize, void* valueBuffer);
static extern unsafe bool CTParagraphStyleGetValueForSpecifier(IntPtr paragraphStyle, CTParagraphStyleSpecifier spec, nuint valueBufferSize, void *valueBuffer);
unsafe byte GetByteValue (CTParagraphStyleSpecifier spec) { byte value; if (!CTParagraphStyleGetValueForSpecifier (Handle, spec, sizeof (byte), &value)) throw new InvalidOperationException ("Unable to get property value."); return value; }
unsafe float GetFloatValue (CTParagraphStyleSpecifier spec) { float value; if (!CTParagraphStyleGetValueForSpecifier (Handle, spec, sizeof (float), &value)) throw new InvalidOperationException ("Unable to get property value."); return value; }
unsafe nfloat GetFloatValue(CTParagraphStyleSpecifier spec)