New to Telerik UI for WinFormsStart a free 30-day trial

View Model for note user control.

Definition

Namespace:Telerik.WinForms.Controls.Spreadsheet.Controls.Notes

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public class NoteControlViewModel : ViewModelBase, INotifyPropertyChanged, IDisposable

Inheritance: objectViewModelBaseNoteControlViewModel

Implements: IDisposableINotifyPropertyChanged

Inherited Members ViewModelBase.VerifyPropertyName(string)ViewModelBase.Dispose()ViewModelBase.OnPropertyChanged(string)ViewModelBase.Dispose(bool)ViewModelBase.PropertyChanged

Constructors

Initializes a new instance of the NoteControlViewModel.

C#
public NoteControlViewModel(SpreadsheetNote note)
Parameters:noteSpreadsheetNote

Properties

Gets the text font size of the note.

C#
public double FontSize { get; }

Gets or sets the height of the note.

C#
public double NoteHeight { get; set; }
Property Value:

The height value.

Gets or sets the note visibility.

C#
public Visibility NoteVisibility { get; set; }

Gets or sets the width of the note.

C#
public double NoteWidth { get; set; }
Property Value:

The width value.

Gets the X offset of the shape.

C#
public double OffsetX { get; set; }

Gets the Y offset of the shape.

C#
public double OffsetY { get; set; }

Gets or sets the point collection of the red triangle.

C#
public PointCollection RedTrianglePoints { get; set; }

Gets or sets the visibility of the red triangle.

C#
public Visibility RedTriangleVisibility { get; set; }

Gets or sets the text of the note.

C#
public string Text { get; set; }
Property Value:

The text value.

Gets the X value of the top right corner of the anchor cell.

C#
public double XAnchor { get; }

Gets the X value of the top left corner of the shape.

C#
public double XShape { get; }

Gets the Y value of the top right corner of the anchor cell.

C#
public double YAnchor { get; }

Gets the Y value of the top left corner of the shape.

C#
public double YShape { get; }