Skip to content

Commit 9f30e3e

Browse files
committed
Multiline support for BaseStylesheet property
Adds (using assembly qualified names) the EditorAttribute to the BaseStylesheet property of the HtmlLabel, HtmlPanel and HtmlToolTip controls, allowing the use of a multiline editor instead of being constrained to a single line.
1 parent eb5a3c1 commit 9f30e3e

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎Source/HtmlRenderer/HtmlLabel.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ public bool IsContextMenuEnabled
183183
[Browsable(true)]
184184
[Description("Set base stylesheet to be used by html rendered in the control.")]
185185
[Category("Appearance")]
186+
[Editor("System.ComponentModel.Design.MultilineStringEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
186187
public string BaseStylesheet
187188
{
188189
get { return _baseRawCssData; }

‎Source/HtmlRenderer/HtmlPanel.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ public bool IsContextMenuEnabled
193193
[Browsable(true)]
194194
[Category("Appearance")]
195195
[Description("Set base stylesheet to be used by html rendered in the control.")]
196+
[Editor("System.ComponentModel.Design.MultilineStringEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
196197
public string BaseStylesheet
197198
{
198199
get { return _baseRawCssData; }

‎Source/HtmlRenderer/HtmlToolTip.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ public HtmlToolTip()
131131
[Browsable(true)]
132132
[Description("Set base stylesheet to be used by html rendered in the tooltip.")]
133133
[Category("Appearance")]
134+
[Editor("System.ComponentModel.Design.MultilineStringEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
134135
public string BaseStylesheet
135136
{
136137
get { return _baseRawCssData; }

0 commit comments

Comments
 (0)