![]() | NoteItemCustomStyle Property |
Namespace: VIZCore3DX.NET.Data
// 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); }