-
Notifications
You must be signed in to change notification settings - Fork 186
Expand file tree
/
Copy pathBookmark.cs
More file actions
48 lines (34 loc) · 860 Bytes
/
Bookmark.cs
File metadata and controls
48 lines (34 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System.Drawing;
using Newtonsoft.Json;
namespace LogExpert.Core.Entities;
[Serializable]
public class Bookmark
{
#region cTor
[JsonConstructor]
public Bookmark ()
{
}
public Bookmark (int lineNum)
{
LineNum = lineNum;
Text = string.Empty;
Overlay = new BookmarkOverlay();
}
public Bookmark (int lineNum, string comment)
{
LineNum = lineNum;
Text = comment;
Overlay = new BookmarkOverlay();
}
#endregion
#region Properties
public int LineNum { get; set; }
public string Text { get; set; }
public BookmarkOverlay Overlay { get; set; }
/// <summary>
/// Position offset of the overlay as set by the user by dragging the overlay with the mouse.
/// </summary>
public Size OverlayOffset { get; set; }
#endregion
}