Skip to content

Commit

Permalink
Add a new function SetColStyle for streaming writer in pt version docs
Browse files Browse the repository at this point in the history
- Add a new exported error variable ErrStreamSetColStyle
  • Loading branch information
xuri committed Feb 16, 2025
1 parent ea11ead commit 622c697
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions pt/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
* [Insira quebra de página para transmitir](stream.md#InsertPageBreak)
* [Definir painéis para transmitir](stream.md#SetPanes)
* [Mesclar célula para transmitir](stream.md#MergeCell)
* [Definir estilo de coluna no fluxo](stream.md#SetColStyle)
* [Defina a largura da coluna para transmitir](stream.md#SetColWidth)
* [Fluxo de descarga](stream.md#Flush)
* [Dados](data.md)
Expand Down
12 changes: 12 additions & 0 deletions pt/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,18 @@ func (sw *StreamWriter) MergeCell(topLeftCell, bottomRightCell string) error

MergeCell fornece uma função para mesclar células por uma determinada referência de intervalo para o `StreamWriter`. Não crie uma célula mesclada que se sobreponha a outra célula mesclada existente.

## Definir estilo de coluna no fluxo {#SetColStyle}

```go
func (sw *StreamWriter) SetColStyle(minVal, maxVal, styleID int) error
```

SetColStyle fornece uma função para definir o estilo de uma única coluna ou de várias colunas para o `StreamWriter`. Observe que você deve chamar a função `SetColStyle` antes da função [`SetRow`](stream.md#SetRow). Por exemplo, defina o estilo da coluna `H`:

```go
err := sw.SetColStyle(8, 8, style)
```

## Defina a largura da coluna para transmitir {#SetColWidth}

```go
Expand Down
2 changes: 2 additions & 0 deletions pt/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ var (
ErrSparklineStyle = errors.New("parameter 'Style' must between 0-35")
// ErrSparklineType definiu a mensagem de erro ao receber os parâmetros de tipo de sparkline inválidos.
ErrSparklineType = errors.New("parameter 'Type' must be 'line', 'column' or 'win_loss'")
// ErrStreamSetColStyle definiu a mensagem de erro ao definir o estilo da coluna no modo de escrita de fluxo.
ErrStreamSetColStyle = errors.New("must call the SetColStyle function before the SetRow function")
// ErrStreamSetColWidth definiu a mensagem de erro ao definir a largura da coluna no modo de gravação de fluxo.
ErrStreamSetColWidth = errors.New("must call the SetColWidth function before the SetRow function")
// ErrStreamSetPanes definiu a mensagem de erro nos painéis definidos no modo de gravação de fluxo.
Expand Down

0 comments on commit 622c697

Please sign in to comment.