Skip to content

Commit

Permalink
center competence profile
Browse files Browse the repository at this point in the history
  • Loading branch information
kallepronk committed Jan 11, 2024
1 parent 6f54ad5 commit d12c560
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions Epsilon/Components/CompetenceProfileComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ private static OpenXmlElement GetTableOneAxis(LearningDomain domain, List<Learni
var table = new Table();

var tblProp = new TableProperties(
new TableJustification(){Val = TableRowAlignmentValues.Center,},
new TableWidth(),
new TableBorders(
new TopBorder() { Val = new EnumValue<BorderValues>(BorderValues.Single), Size = 3, },
Expand All @@ -86,7 +87,11 @@ private static OpenXmlElement GetTableOneAxis(LearningDomain domain, List<Learni
var tblGrid = new TableGrid();
table.AppendChild(tblGrid);

var headerRow = new TableRow();
var headerRow = new TableRow()
{
TableRowProperties = new TableRowProperties(
new TableJustification(){Val = TableRowAlignmentValues.Center,}),
};

foreach (var row in domain.RowsSet.Types.OrderBy(static c => c.Order))
{
Expand All @@ -105,7 +110,13 @@ private static OpenXmlElement GetTableOneAxis(LearningDomain domain, List<Learni

table.AppendChild(headerRow);

var domainRow = new TableRow() { TableRowProperties = new TableRowProperties(new TableRowHeight() { Val = 2600, }), };
var domainRow = new TableRow()
{
TableRowProperties = new TableRowProperties(
new TableJustification(){Val = TableRowAlignmentValues.Center,},
new TableRowHeight() { Val = 2600, }
),
};


domainRow.Append();
Expand Down Expand Up @@ -145,6 +156,7 @@ private static OpenXmlElement GetTableTwoAxis(LearningDomain domain, List<Learni
var table = new Table();

var tblProp = new TableProperties(

new TableWidth(),
new TableBorders(
new BottomBorder() { Val = new EnumValue<BorderValues>(BorderValues.Single), Size = 3, },
Expand All @@ -159,7 +171,11 @@ private static OpenXmlElement GetTableTwoAxis(LearningDomain domain, List<Learni
var tblGrid = new TableGrid();
table.AppendChild(tblGrid);

var headerRow = new TableRow();
var headerRow = new TableRow()
{
TableRowProperties = new TableRowProperties(
new TableJustification(){Val = TableRowAlignmentValues.Center,}),
};

var content = new Paragraph(new Run(new Text("")))
{
Expand Down Expand Up @@ -190,7 +206,12 @@ private static OpenXmlElement GetTableTwoAxis(LearningDomain domain, List<Learni

foreach (var row in domain.RowsSet.Types.OrderBy(static r => r.Order))
{
var domainRow = new TableRow() { TableRowProperties = new TableRowProperties(new TableRowHeight() { Val = 500, }), };
var domainRow = new TableRow()
{
TableRowProperties = new TableRowProperties(
new TableJustification(){Val = TableRowAlignmentValues.Center,},
new TableRowHeight() { Val = 500, }),
};

domainRow.AppendChild(
CreateTableCell(
Expand Down

0 comments on commit d12c560

Please sign in to comment.