Skip to content

Commit 520e743

Browse files
committed
Added clearifying comments
1 parent 1973fa6 commit 520e743

4 files changed

Lines changed: 7 additions & 9 deletions

File tree

src/EPPlus.DrawingRenderer/RenderItems/Textbox/RichTextFormatDrawing/IRichTextFormatDrawing.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
namespace EPPlus.DrawingRenderer.RenderItems.Textbox
1010
{
1111
/// <summary>
12+
/// TODO: Move this to interfaces. Only here in order to not break existing references in PDF
13+
/// (This should be moved when IRichTextFormatSimple is moved)
14+
///
1215
/// Rich text data for drawings
1316
/// </summary>
1417
public interface IRichTextFormatDrawing : IRichTextFormatSimple

src/EPPlus.Fonts.OpenType/Integration/DataHolders/IRichTextFormatSimple.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
using OfficeOpenXml.Interfaces.Fonts;
2-
using OfficeOpenXml.Interfaces.RichText;
3-
using System;
4-
using System.Collections.Generic;
1+
using OfficeOpenXml.Interfaces.RichText;
52
using System.Drawing;
6-
using System.Linq;
7-
using System.Text;
83

94

105
namespace EPPlus.Fonts.OpenType.Integration.DataHolders
116
{
127
/// <summary>
138
/// TODO: Move this to interfaces. Only here in order to not break existing references in PDF
9+
///
1410
/// Interface for pdf/svg/future richtext users to unify richtext styling
1511
/// </summary>
1612
public interface IRichTextFormatSimple : IRichTextFormatEssential

src/EPPlus.Fonts.OpenType/Integration/RichText/LayoutSystem.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ public class LayoutSystem
2020
//The text of the entire paragraph
2121
//regardless of linebreaking or style runs
2222
string FullText;
23-
public List<CharInfo> AllChars { get; private set; }= new List<CharInfo>();
23+
private List<CharInfo> AllChars { get; set; }= new List<CharInfo>();
2424
List<int> SeparatorIndicies = new List<int>();
2525
List<int> ParagraphSeparatorIndicies = new List<int>();
2626
List<Paragraph> SubParagraphs = new List<Paragraph>();
27-
public List<StyleRun> StyleRuns { get; private set; } = new List<StyleRun>();
27+
private List<StyleRun> StyleRuns { get; set; } = new List<StyleRun>();
2828
int FullTextLength = 0;
2929
int FullTextLastIdx = 0;
3030

src/EPPlus.Interfaces/RichText/IFontFormatBase.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ public interface IFontFormatBase
1212
public FontSubFamily SubFamily { get; set; }
1313
public float Size { get; set; }
1414

15-
1615
/// <summary>
1716
/// Sets the underlying data properties to be equal to the font
1817
/// </summary>

0 commit comments

Comments
 (0)