Click or drag to resize

NoteItemCustomStyle Property

노트 항목 스타일

Namespace:  VIZCore3DX.NET.Data
Assembly:  VIZCore3DX.NET (in VIZCore3DX.NET.dll) Version: 1.0.25.326 (1.0.25.326)
Syntax
C#
public NoteCustomStyle CustomStyle { get; }

Property Value

Type: NoteCustomStyle
Examples
C#
// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;

private void Example()
{
    // 개별 노트 스타일
    List<Data.NoteItem> items = vizcore3dx.Note.Notes;

    // Get Style
    Data.NoteItem item = items[0];
    System.Drawing.Color boxFillColor = item.CustomStyle.BoxFillColor;
    System.Drawing.Color boxStrokeColor = item.CustomStyle.BoxStrokeColor;
    System.Drawing.Color textColor = item.CustomStyle.TextColor;        
    System.Drawing.Color lineStrokeColor = item.CustomStyle.LineStrokeColor;
    Data.StrokePattern lineStrokePattern = item.CustomStyle.LineStrokePattern;
    float lineStrokeThickness = item.CustomStyle.LineStrokeThickness;
    Data.TextSizeType textSize = item.CustomStyle.TextSize;

    System.Drawing.Color symbolFillColor = item.CustomStyle.SymbolFillColor;
    System.Drawing.Color symbolStrokeColor = item.CustomStyle.SymbolStrokeColor;
    float symbolSize = item.CustomStyle.SymbolSize;
    System.Drawing.Color symbolTextColor = item.CustomStyle.SymbolTextColor;
    Data.TextSizeType symbolTextSize = item.CustomStyle.SymbolTextSize;

    //Set Style
    Data.NoteCustomStyle customStyle = item.CustomStyle;
    customStyle.BoxFillColor = Color.Green;
    customStyle.BoxStrokeColor = Color.Red;
    customStyle.TextColor = Color.White;
    customStyle.TextSize = Data.TextSizeType.Size_24;
    customStyle.LineStrokeColor = Color.Green;
    customStyle.LineStrokePattern = StrokePattern.Solid;
    customStyle.LineStrokeThickness = 30;

    customStyle.SymbolFillColor = Color.Green;
    customStyle.SymbolStrokeColor = Color.Red;
    customStyle.SymbolSize = 20;
    customStyle.SymbolTextColor = Color.White;
    customStyle.SymbolTextSize = Data.TextSizeType.Size_24;

    item.SetStyle(customStyle);
}
See Also