Skip to content

Commit 56647b8

Browse files
committed
v23.12.0 source code and readme
1 parent 30b3a19 commit 56647b8

6 files changed

Lines changed: 3001 additions & 2629 deletions

File tree

FileFormat.Words/FileFormat.Words.IElements.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public interface IElement
1010
/// <summary>
1111
/// Gets the unique identifier of the element.
1212
/// </summary>
13-
int ElementID { get; }
13+
int ElementId { get; }
1414
}
1515

1616
/// <summary>
@@ -21,7 +21,7 @@ public class Paragraph : IElement
2121
/// <summary>
2222
/// Gets the unique identifier of the paragraph.
2323
/// </summary>
24-
public int ElementID { get; internal set; }
24+
public int ElementId { get; internal set; }
2525

2626
/// <summary>
2727
/// Gets or sets the text content of the paragraph.
@@ -122,23 +122,23 @@ public static class Headings
122122
/// </summary>
123123
public class Run
124124
{
125-
private string text;
126-
125+
private string _text;
127126
/// <summary>
128127
/// Gets or sets the text content of the run.
129128
/// </summary>
130129
public string Text
131130
{
132-
get => text;
131+
132+
get => _text;
133133
set
134134
{
135-
text = value;
135+
_text = value;
136136
if (ParentParagraph != null)
137137
{
138138
ParentParagraph.UpdateText();
139139
}
140140
}
141-
}
141+
}
142142

143143
/// <summary>
144144
/// Gets or sets the font family of the run.
@@ -287,7 +287,7 @@ public class Image : IElement
287287
/// <summary>
288288
/// Gets the unique identifier of the image.
289289
/// </summary>
290-
public int ElementID { get; internal set; }
290+
public int ElementId { get; internal set; }
291291

292292
/// <summary>
293293
/// Gets or sets the binary image data.
@@ -312,7 +312,7 @@ public class Table : IElement
312312
/// <summary>
313313
/// Gets the unique identifier of the table.
314314
/// </summary>
315-
public int ElementID { get; internal set; }
315+
public int ElementId { get; internal set; }
316316

317317
/// <summary>
318318
/// Gets or sets the table style.
@@ -349,18 +349,18 @@ public Table(int rows, int columns)
349349
Rows = new List<Row>();
350350
Column = new Column();
351351

352-
for (int i = 0; i < rows; i++)
352+
for (var i = 0; i < rows; i++)
353353
{
354-
Row row = new Row();
354+
var row = new Row();
355355
row.Cells = new List<Cell>();
356356

357-
for (int j = 0; j < columns; j++)
357+
for (var j = 0; j < columns; j++)
358358
{
359359
var cellContent = "";
360360
var paragraph = new Paragraph();
361361
paragraph.AddRun(new Run { Text = cellContent });
362362

363-
Cell cell = new Cell { Paragraphs = new List<Paragraph> { paragraph } };
363+
var cell = new Cell { Paragraphs = new List<Paragraph> { paragraph } };
364364
row.Cells.Add(cell);
365365
}
366366

@@ -433,7 +433,7 @@ public class Section : IElement
433433
/// <summary>
434434
/// Gets the unique identifier of the section.
435435
/// </summary>
436-
public int ElementID { get; internal set; }
436+
public int ElementId { get; internal set; }
437437

438438
/// <summary>
439439
/// Gets the page size properties for the section.
@@ -523,7 +523,7 @@ public class Unknown : IElement
523523
/// <summary>
524524
/// Gets the unique identifier of the unknown element.
525525
/// </summary>
526-
public int ElementID { get; internal set; }
526+
public int ElementId { get; internal set; }
527527

528528
internal Unknown()
529529
{

0 commit comments

Comments
 (0)