Delete
Overloads
| Name | Description |
|---|---|
| Delete() | Delete (Selected) |
| Delete(UInt32 id) | Delete |
| Delete(SectionItem section) | Delete |
| Delete(List<SectionItem> list) | Delete |
| Delete(List<UInt32> ID) | Delete |
Delete()
public void Delete()
Delete (Selected)
Examples
// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;
public void Example()
{
// 선택된 단면만 삭제되므로, 먼저 대상을 선택합니다.
if (vizcore3dx.Section.Sections.Count == 0) return;
vizcore3dx.Section.Select(vizcore3dx.Section.Sections[0]);
vizcore3dx.Section.Delete();
}
Delete(UInt32 id)
public void Delete(UInt32 id)
Delete
Parameters
| Name | Type | Description |
|---|---|---|
| id | uint | ID |
Examples
// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;
public void Example()
{
if (vizcore3dx.Section.Sections.Count == 0) return;
vizcore3dx.Section.Delete(vizcore3dx.Section.Sections[0].ID);
}
Delete(SectionItem section)
public void Delete(SectionItem section)
Delete
Parameters
| Name | Type | Description |
|---|---|---|
| section | SectionItem | Section |
Examples
// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;
public void Example()
{
if (vizcore3dx.Section.Sections.Count == 0) return;
vizcore3dx.Section.Delete(vizcore3dx.Section.Sections[0]);
}
Delete(List<SectionItem> list)
public void Delete(List<SectionItem> list)
Delete
Parameters
| Name | Type | Description |
|---|---|---|
| list | List<SectionItem> | Section List |
Examples
// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;
public void Example()
{
// 단면 상자만 골라 삭제합니다.
List<VIZCore3DX.NET.Data.SectionItem> items =
vizcore3dx.Section.Sections.FindAll(
x => x.SectionType == VIZCore3DX.NET.Manager.SectionManager.SectionTypes.SECTION_BOX);
if (items.Count == 0) return;
vizcore3dx.Section.Delete(items);
}
Delete(List<UInt32> ID)
public void Delete(List<UInt32> ID)
Delete
Parameters
| Name | Type | Description |
|---|---|---|
| ID | List<uint> | ID List |
Examples
// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;
public void Example()
{
List<uint> ids = new List<uint>();
foreach (VIZCore3DX.NET.Data.SectionItem item in vizcore3dx.Section.Sections)
ids.Add(item.ID);
vizcore3dx.Section.Delete(ids);
}