Compartilhar via


Word.BorderType enum

Representa o tipo de limite .

Comentários

[ Conjunto de API: WordApi 1.3 ]

Exemplos

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/40-tables/manage-formatting.yaml

// Gets border details about the first of the first table in the document.
await Word.run(async (context) => {
  const firstTable: Word.Table = context.document.body.tables.getFirst();
  const firstCell: Word.TableCell = firstTable.getCell(0, 0);
  const borderLocation = "Left";
  const border: Word.TableBorder = firstCell.getBorder(borderLocation);
  border.load(["type", "color", "width"]);
  await context.sync();

  console.log(`Details about the ${borderLocation} border of the first table's first cell:`, `- Color: ${border.color}`, `- Type: ${border.type}`, `- Width: ${border.width} points`);
});

Campos

dashDotStroked = "DashDotStroked"

Limite tracejado com traço- traço.

dashed = "Dashed"

Limite tracejado.

dashedSmall = "DashedSmall"

Limite pequeno tracejado.

dot2Dashed = "Dot2Dashed"

Limite duplo tracejado com pontos.

dotDashed = "DotDashed"

Limite tracejado por pontos.

dotted = "Dotted"

Limite pontilhado.

double = "Double"

Limite duplo.

doubleWave = "DoubleWave"

Limite de onda dupla.

mixed = "Mixed"

Tipo de limite misto.

none = "None"

Sem borda.

single = "Single"

Limite único.

thickThinLarge = "ThickThinLarge"

Limite grande espesso e fino.

thickThinMed = "ThickThinMed"

Limite médio espesso e fino.

thickThinSmall = "ThickThinSmall"

Limite pequeno espesso e fino.

thinThickLarge = "ThinThickLarge"

Limite grande de espessura fina.

thinThickMed = "ThinThickMed"

Limite médio fino e espesso.

thinThickSmall = "ThinThickSmall"

Limite pequeno de espessura fina.

thinThickThinLarge = "ThinThickThinLarge"

Limite grande fino e fino.

thinThickThinMed = "ThinThickThinMed"

Limite médio fino e fino.

thinThickThinSmall = "ThinThickThinSmall"

Limite pequeno fino e fino.

threeDEmboss = "ThreeDEmboss"

Limite de Emboss 3D.

threeDEngrave = "ThreeDEngrave"

Limite de Gravura 3D.

triple = "Triple"

Limite triplo.

wave = "Wave"

Limite de onda.