Skip to content

Expose IsMultiline property on Label components#64

Merged
ThomasRemmery merged 2 commits into10.6.3.Xfrom
label-expose-ismultiline
Mar 6, 2026
Merged

Expose IsMultiline property on Label components#64
ThomasRemmery merged 2 commits into10.6.3.Xfrom
label-expose-ismultiline

Conversation

@TomW-Skyline
Copy link
Copy Markdown
Member

No description provided.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Exposes the underlying UI block’s multiline capability on Label so consumers can explicitly enable/disable multi-line rendering for static text labels.

Changes:

  • Added Label.IsMultiline property that forwards to BlockDefinition.IsMultiline.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +88 to +101
/// <summary>
/// Gets or sets a value indicating whether this label is multiline, meaning that it can display multiple lines of text.
/// </summary>
public bool IsMultiline
{
get
{
return BlockDefinition.IsMultiline;
}

set
{
BlockDefinition.IsMultiline = value;
}
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IsMultiline is a new public API surface on Label, but there is no unit test verifying that setting/getting it correctly forwards to BlockDefinition.IsMultiline. Adding a small test (similar to other BlockDefinition-backed property tests in this repo) would help prevent regressions when the underlying UI block behavior changes.

Copilot uses AI. Check for mistakes.
@ThomasRemmery ThomasRemmery merged commit 3ec827b into 10.6.3.X Mar 6, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants