Click or drag to resize

SectionManagerOnSectionAfterAddEvent Event

단면 생성 이후 이벤트

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public event SectionAfterAddEventHandler OnSectionAfterAddEvent

Value

Type: SectionAfterAddEventHandler
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    vizcore3d.Section.OnSectionBeforeAddEvent += Section_OnSectionBeforeAddEvent;
    vizcore3d.Section.OnSectionAfterAddEvent += Section_OnSectionAfterAddEvent;
}

private void Section_OnSectionBeforeAddEvent(object sender, Event.EventManager.SectionBeforeAddEventArgs e)
{
    switch (e.Kind)
    {
        case Manager.SectionManager.SectionTypes.SECTION:
            {
                bool partSelection = e.PartSelection;
                VIZCore3D.NET.Data.Axis axis = e.SectionAxis;
            }
            break;
        case Manager.SectionManager.SectionTypes.SECTION_BOX:
            {
                bool partSelection = e.PartSelection;
                float margine = e.Margine;
            }
            break;
        case Manager.SectionManager.SectionTypes.SECTION_INBOX:
            break;
        case Manager.SectionManager.SectionTypes.SECTION_INBOX6:
            break;
        default:
            break;
    }
}

private void Section_OnSectionAfterAddEvent(object sender, Event.EventManager.SectionAfterAddEventArgs e)
{
    VIZCore3D.NET.Data.Section section = e.Item;
}
See Also