using System.Collections.Generic; namespace WpfRichTextBox { public class TextLine { public List RichChars { get; set; } = new List(); // 可扩展:如行号、行属性等 } }