Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 3db4494

Browse files
committed
Move public members to top
1 parent 2e4f521 commit 3db4494

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

src/GitHub.InlineReviews/Glyph/GlyphMargin.cs

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,33 @@ public ITextViewMargin GetTextViewMargin(string marginName)
6666
return (marginName == this.marginName) ? this : null;
6767
}
6868

69+
public bool Enabled
70+
{
71+
get
72+
{
73+
ThrowIfDisposed();
74+
return true;
75+
}
76+
}
77+
78+
public double MarginSize
79+
{
80+
get
81+
{
82+
ThrowIfDisposed();
83+
return marginVisual.Width;
84+
}
85+
}
86+
87+
public FrameworkElement VisualElement
88+
{
89+
get
90+
{
91+
ThrowIfDisposed();
92+
return marginVisual;
93+
}
94+
}
95+
6996
void OnLoaded(object sender, RoutedEventArgs e)
7097
{
7198
RefreshMarginVisibility();
@@ -179,32 +206,5 @@ void ThrowIfDisposed()
179206
throw new ObjectDisposedException(marginName);
180207
}
181208
}
182-
183-
public bool Enabled
184-
{
185-
get
186-
{
187-
ThrowIfDisposed();
188-
return true;
189-
}
190-
}
191-
192-
public double MarginSize
193-
{
194-
get
195-
{
196-
ThrowIfDisposed();
197-
return marginVisual.Width;
198-
}
199-
}
200-
201-
public FrameworkElement VisualElement
202-
{
203-
get
204-
{
205-
ThrowIfDisposed();
206-
return marginVisual;
207-
}
208-
}
209209
}
210210
}

0 commit comments

Comments
 (0)