public new vtkContextDevice2D NewInstance()
        {
            vtkContextDevice2D result = null;
            uint   mteStatus          = 0u;
            uint   mteIndex           = 4294967295u;
            uint   rawRefCount        = 0u;
            IntPtr intPtr             = vtkContextDevice2D.vtkContextDevice2D_NewInstance_27(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkContextDevice2D)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
        public new static vtkContextDevice2D SafeDownCast(vtkObjectBase o)
        {
            vtkContextDevice2D vtkContextDevice2D = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkContextDevice2D.vtkContextDevice2D_SafeDownCast_30((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkContextDevice2D = (vtkContextDevice2D)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkContextDevice2D.Register(null);
                }
            }
            return(vtkContextDevice2D);
        }
        public virtual vtkContextDevice2D GetDevice()
        {
            vtkContextDevice2D vtkContextDevice2D = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkContext2D.vtkContext2D_GetDevice_47(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkContextDevice2D = (vtkContextDevice2D)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkContextDevice2D.Register(null);
                }
            }
            return(vtkContextDevice2D);
        }
 public bool Begin(vtkContextDevice2D device)
 {
     return(vtkContext2D.vtkContext2D_Begin_06(base.GetCppThis(), (device == null) ? default(HandleRef) : device.GetCppThis()) != 0);
 }