public new static vtkContext2D SafeDownCast(vtkObjectBase o) { vtkContext2D vtkContext2D = null; uint mteStatus = 0u; uint mteIndex = 4294967295u; uint rawRefCount = 0u; IntPtr intPtr = vtkContext2D.vtkContext2D_SafeDownCast_57((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount); if (IntPtr.Zero != intPtr) { bool flag; vtkContext2D = (vtkContext2D)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag); if (flag) { vtkContext2D.Register(null); } } return(vtkContext2D); }
public virtual vtkContext2D GetContext() { vtkContext2D vtkContext2D = null; uint mteStatus = 0u; uint mteIndex = 4294967295u; uint rawRefCount = 0u; IntPtr intPtr = vtkContextActor.vtkContextActor_GetContext_01(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount); if (IntPtr.Zero != intPtr) { bool flag; vtkContext2D = (vtkContext2D)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag); if (flag) { vtkContext2D.Register(null); } } return(vtkContext2D); }