| File: System\ComponentModel\Design\DesignerActionPanel.HeaderLine.cs | Web Access |
| Project: src\winforms\src\System.Windows.Forms.Design\src\System.Windows.Forms.Design.csproj (System.Windows.Forms.Design) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Drawing; namespace System.ComponentModel.Design; internal sealed partial class DesignerActionPanel { private sealed class HeaderLine : TextLine { private HeaderLine(IServiceProvider serviceProvider, DesignerActionPanel actionPanel) : base(serviceProvider, actionPanel) { } protected override Font GetFont() => new(ActionPanel.Font, FontStyle.Bold); public static new StandardLineInfo CreateLineInfo(DesignerActionList list, DesignerActionTextItem item) => new HeaderTextLineInfo(list, item); private sealed class HeaderTextLineInfo(DesignerActionList list, DesignerActionTextItem item) : TextLineInfo(list, item) { public override Line CreateLine(IServiceProvider serviceProvider, DesignerActionPanel actionPanel) { return new HeaderLine(serviceProvider, actionPanel); } public override Type LineType => typeof(HeaderLine); } } }