Skip to content

Commit

Permalink
Remove unnecessary headings
Browse files Browse the repository at this point in the history
  • Loading branch information
igitur committed Oct 22, 2016
1 parent 89d80bf commit 7c18cb5
Show file tree
Hide file tree
Showing 61 changed files with 332 additions and 4,660 deletions.
3 changes: 0 additions & 3 deletions Accessing-Named-Ranges.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## Accessing Named Ranges

If you have one or more [Named Ranges](Named-Ranges) you can access them in different ways:

* A specific range/cell in the named range
Expand Down Expand Up @@ -54,4 +52,3 @@ var range = worksheet.Range("Result");

**Can't find it?**
A null is returned if the named range doesn't exist.

2 changes: 0 additions & 2 deletions Adding-DataSet.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## Adding DataSet

```c#
var wb = new XLWorkbook();

Expand Down
2 changes: 0 additions & 2 deletions Adding-DataTable-as-Worksheet.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## Adding DataTable as Worksheet

```c#
var wb = new XLWorkbook();

Expand Down
2 changes: 0 additions & 2 deletions Adjust-Row-Height-and-Column-Width-to-Contents.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## Adjust Row Height and Column Width to Contents

![AdjustToContents.jpg](http://download-codeplex.sec.s-msft.com/Download?ProjectName=closedxml&DownloadId=192404 "AdjustToContents.jpg")

```c#
Expand Down
4 changes: 1 addition & 3 deletions Basic-Table.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## Basic Table

![BasicTable.jpg](http://download-codeplex.sec.s-msft.com/Download?ProjectName=closedxml&DownloadId=165397 "BasicTable.jpg")

**Creating a new workbook**
Expand Down Expand Up @@ -115,4 +113,4 @@ ws.Columns(2, 6).AdjustToContents();
**Saving the workbook**
```c#
wb.SaveAs("BasicTable.xlsx");
```
```
14 changes: 6 additions & 8 deletions Better-lambdas.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
## Better lambdas

Consider providing a predicate to the Cells/Rows/Columns methods instead of asking for all the object and then applying a .Where to them.

**Not so good:**
```c#
foreach (var row in worksheet.RowsUsed().Where(r => r.FirstCell().GetString() == "A"))
{
// Do something with the row...
// Do something with the row...
}
```

**Best way:**
```c#
using (var rows = worksheet.RowsUsed(r => r.FirstCell().GetString() == "A"))
{
foreach (var row in rows)
{
// Do something with the row...
}
foreach (var row in rows)
{
// Do something with the row...
}
}
```

Expand All @@ -29,4 +27,4 @@ var column = range.Columns().First(c => c.FirstCell().GetString() == "A");
**Best way:**
```c#
var column = range.FirstColumnUsed(c => c.FirstCell().GetString() == "A");
```
```
2 changes: 0 additions & 2 deletions Cell-Values.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## Cell Values

![CellValues.jpg](http://download-codeplex.sec.s-msft.com/Download?ProjectName=closedxml&DownloadId=177519 "CellValues.jpg")

```c#
Expand Down
2 changes: 0 additions & 2 deletions Clearing-Ranges.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## Clearing Ranges

![ClearingRanges.jpg](http://download-codeplex.sec.s-msft.com/Download?ProjectName=closedxml&DownloadId=151765 "ClearingRanges.jpg")

```c#
Expand Down
Loading

0 comments on commit 7c18cb5

Please sign in to comment.