File: System\Windows\Forms\Design\RichTextBoxActionList.cs
Web Access
Project: src\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.ComponentModel.Design;
 
namespace System.Windows.Forms.Design;
 
internal class RichTextBoxActionList : DesignerActionList
{
    private readonly RichTextBoxDesigner _designer;
 
    public RichTextBoxActionList(RichTextBoxDesigner designer)
        : base(designer.Component)
    {
        _designer = designer;
    }
 
    public void EditLines()
    {
        EditorServiceContext.EditValue(_designer, Component!, "Lines");
    }
 
    public override DesignerActionItemCollection GetSortedActionItems()
    {
        DesignerActionItemCollection items =
        [
            new DesignerActionMethodItem(this, "EditLines", SR.EditLinesDisplayName, SR.LinksCategoryName, SR.EditLinesDescription, true),
        ];
        return items;
    }
}