Click or drag to resize

NoteManagerSurfaceNoteDefaultValue Property

Surface Note Dialog Default Value

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public SurfaceNoteDefaultData SurfaceNoteDefaultValue { get; set; }

Property Value

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

private void Example()
{
    if (vizcore3d.Model.IsOpen() == false) return;

    // 기본 데이터 생성
    VIZCore3D.NET.Data.SurfaceNoteDefaultData item = new VIZCore3D.NET.Data.SurfaceNoteDefaultData();
    item.UseSymbol = true;
    item.SymbolText = "1";
    item.ModelNameLevel = 1;

    // 기본 데이터 설정
    vizcore3d.Review.Note.SurfaceNoteDefaultValue = item;

    // 리뷰 변경 : 표면노트 추가 이벤트
    vizcore3d.Review.OnReviewChangedEvent += Review_OnReviewChangedEvent;

    // 표면노트 추가
    vizcore3d.Review.Note.AddNoteSurfaceDialog();
}

private void Review_OnReviewChangedEvent(object sender, Event.EventManager.ReviewEventArgs e)
{
    if (e.EventKind != Manager.ReviewManager.ReviewEventKind.ADDED_SURFACE_NOTE) return;

    VIZCore3D.NET.Data.SurfaceNoteDefaultData item = vizcore3d.Review.Note.SurfaceNoteDefaultValue;

    item.SymbolText = "2";
}
See Also