Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
CFxUIToolbarItem.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace PCAD_DOT_NET {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16using Teigha.TD;
17
18public class CFxUIToolbarItem : global::System.IDisposable {
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 protected bool swigCMemOwn;
22 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
23 public CFxUIToolbarItem(IntPtr cPtr, bool cMemoryOwn) {
24 swigCMemOwn = cMemoryOwn;
25 swigCPtr = new HandleRef(this, cPtr);
26 }
27 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
28 public static HandleRef getCPtr(CFxUIToolbarItem obj) {
29 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
30 }
31
33 Dispose(false);
34 }
35
36 public void Dispose() {
37 Dispose(true);
38 global::System.GC.SuppressFinalize(this);
39 }
40
41 protected virtual void Dispose(bool disposing) {
42 if (swigCPtr.Handle != IntPtr.Zero)
43 {
44 if (swigCMemOwn)
45 {
46 lock (locker)//(this)
47 {
48 if ((swigCPtr.Handle != IntPtr.Zero) && (swigCMemOwn))
49 {
50 swigCMemOwn = false;
51 throw new MethodAccessException("C++ destructor does not have public access");
52 }
53 }
54 swigCMemOwn = false;
55 }
56 swigCPtr = new HandleRef(null, IntPtr.Zero);
57 }
58 GC.SuppressFinalize(this);
59 }
60
66
71
77
82
88
93
98
100 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxUIToolbarItem_GetDefinition(swigCPtr);
101 CFxUIItemDefinition ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxUIItemDefinition(cPtr, false);
103 return ret;
104 }
105
106 public virtual CFxUIToolbarItem GetParent() {
107 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxUIToolbarItem_GetParent(swigCPtr);
108 CFxUIToolbarItem ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxUIToolbarItem(cPtr, false);
110 return ret;
111 }
112
114 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxUIToolbarItem_GetChildren(swigCPtr);
115 CFxUIToolbarItemCollection ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxUIToolbarItemCollection(cPtr, false);
117 return ret;
118 }
119
125
126 public virtual bool IsAction() {
129 return ret;
130 }
131
137
142
148
153
159
164
165 public virtual bool GetMovable() {
168 return ret;
169 }
170
175
181
186
192
197
203
204 public virtual void SetInMatrixToolbar(bool bInMatrixToolbar) {
207 }
208
214
219
220 public virtual bool IsExpanded() {
223 return ret;
224 }
225
226 public virtual void SetExpanded(bool bIsExpanded) {
229 }
230
231 public virtual int GetRows() {
234 return ret;
235 }
236
241
242 public virtual bool IsObsolete() {
245 return ret;
246 }
247
252
258
263
269
274
280
285
286 public virtual bool IsRuntime() {
289 return ret;
290 }
291
292}
293
294}
static HandleRef getCPtr(CFxString obj)
Definition CFxString.cs:28
static HandleRef getCPtr(CFxUIItemDefinition obj)
virtual void SetName(CFxString name)
virtual void Dispose(bool disposing)
virtual void SetFlyoutID(CFxString flyoutID)
virtual CFxUIToolbarItemCollection GetChildren()
virtual void SetRows(int iRows)
virtual void SetDefYLocation(int iYLocation)
virtual SWIGTYPE_p_OdArrayT_CFxString_t GetAliases()
virtual void SetOrientation(CFxUI.Orientation orientation)
CFxUIToolbarItem(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(CFxUIToolbarItem obj)
virtual void SetDefXLocation(int iXLocation)
virtual void SetMovable(bool bMovable)
virtual void SetUID(CFxString strUID)
virtual void SetMatrixToolbarIndex(int index)
virtual void SetObsolete(bool bObsolete)
virtual CFxUIToolbarItem GetParent()
virtual CFxUI.ToolbarType GetType()
virtual void SetDefinition(CFxUIItemDefinition pDefinition)
virtual void SetDockRow(int iDockRow)
virtual void AddAlias(CFxString sAlias)
virtual void SetExpanded(bool bIsExpanded)
virtual CFxUI.Orientation GetOrientation()
virtual void SetOnByDefault(bool bOnByDefault)
virtual void SetDockColumn(int iDockColumn)
virtual CFxUIItemDefinition GetDefinition()
virtual void SetInMatrixToolbar(bool bInMatrixToolbar)
static int CFxUIToolbarItem_GetDockColumn(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxUIToolbarItem_GetName(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetRows(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int CFxUIToolbarItem_GetType(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxUIToolbarItem_GetMatrixToolbarIndex(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetUID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIToolbarItem_SetFlyoutID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool CFxUIToolbarItem_IsInMatrixToolbar(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetMovable(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool CFxUIToolbarItem_IsRuntime(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetDefXLocation(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int CFxUIToolbarItem_GetRows(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxUIToolbarItem_IsObsolete(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxUIToolbarItem_GetOnByDefault(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetDefYLocation(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr CFxUIToolbarItem_GetAliases(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxUIToolbarItem_IsSeparator(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxUIToolbarItem_GetParent(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxUIToolbarItem_GetDefinition(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxUIToolbarItem_IsAction(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxUIToolbarItem_GetChildren(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetObsolete(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void CFxUIToolbarItem_SetDockColumn(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool CFxUIToolbarItem_IsExpanded(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxUIToolbarItem_GetDockRow(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxUIToolbarItem_GetMovable(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetExpanded(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void CFxUIToolbarItem_SetOrientation(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void CFxUIToolbarItem_SetToSeparator(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxUIToolbarItem_GetDefXLocation(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_AddAlias(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIToolbarItem_SetName(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxUIToolbarItem_GetFlyoutID(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetInMatrixToolbar(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static int CFxUIToolbarItem_GetDefYLocation(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetDockRow(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr CFxUIToolbarItem_GetUID(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetDefinition(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIToolbarItem_SetOnByDefault(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static int CFxUIToolbarItem_GetOrientation(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetMatrixToolbarIndex(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)