Back to Devexpress

IParagraphProperties Interface

aspnetcore-js-devexpress-dot-richedit-85e6dd41.md

latest8.9 KB
Original Source

IParagraphProperties Interface

Declares paragraph properties.

Declaration

ts
export interface IParagraphProperties

Properties

alignment Property

Specifies the paragraph alignment.

Declaration

ts
alignment?: ParagraphAlignment

Property Value

TypeDescription
ParagraphAlignment

The paragraph alignment.

|

backColor Property

Specifies the paragraph background color.

Declaration

ts
backColor?: string

Property Value

TypeDescription
string

The background color.

|

Remarks

The following color formats are available:

  • 'Auto' and 'NoColor' values.
  • Hexadecimal notation (for example, '#31bb32').
  • RGB format (for example, 'rgb(51,187,51)').
  • Named colors (for example, 'darkturquoise').

Show allowed color names

NameHEXNameHEXNameHEXNameHEX
aliceblue#f0f8ffdarkturquoise#00ced1lightskyblue#87cefapeachpuff#ffdab9
antiquewhite#faebd7darkviolet#9400d3lightslateblue#8470ffperu#cd853f
aqua#00ffffdeeppink#ff1493lightslategray#778899pink#ffc0cb
aquamarine#7fffd4deepskyblue#00bffflightsteelblue#b0c4deplum#dda0dd
azure#f0ffffdimgray#696969lightyellow#ffffe0powderblue#b0e0e6
beige#f5f5dcdodgerblue#1e90fflime#00ff00purple#800080
bisque#ffe4c4feldspar#d19275limegreen#32cd32red#ff0000
black#000000firebrick#b22222linen#faf0e6rosybrown#bc8f8f
blanchedalmond#ffebcdfloralwhite#fffaf0magenta#ff00ffroyalblue#4169e1
blue#0000ffforestgreen#228b22maroon#800000saddlebrown#8b4513
blueviolet#8a2be2fuchsia#ff00ffmediumaquamarine#66cdaasalmon#fa8072
brown#a52a2againsboro#dcdcdcmediumblue#0000cdsandybrown#f4a460
burlywood#deb887ghostwhite#f8f8ffmediumorchid#ba55d3seagreen#2e8b57
cadetblue#5f9ea0gold#ffd700mediumpurple#9370d8seashell#fff5ee
chartreuse#7fff00goldenrod#daa520mediumseagreen#3cb371sienna#a0522d
chocolate#d2691egray#808080mediumslateblue#7b68eesilver#c0c0c0
coral#ff7f50green#00ff00mediumspringgreen#00fa9askyblue#87ceeb
cornflowerblue#6495edhoneydew#f0fff0mediumturquoise#48d1ccslateblue#6a5acd
cornsilk#fff8dchotpink#ff69b4mediumvioletred#c71585slategray#708090
crimson#dc143cindianred#cd5c5cmidnightblue#191970snow#fffafa
cyan#00ffffindigo#4b0082mintcream#f5fffaspringgreen#00ff7f
darkblue#00008bivory#fffff0mistyrose#ffe4e1steelblue#4682b4
darkcyan#008b8bkhaki#f0e68cmoccasin#ffe4b5tan#d2b48c
darkgoldenrod#b8860blavender#e6e6fanavajowhite#ffdeadteal#008080
darkgray#a9a9a9lavenderblush#fff0f5navy#000080thistle#d8bfd8
darkgreen#006400lawngreen#7cfc00oldlace#fdf5e6tomato#ff6347
darkkhaki#bdb76blemonchiffon#fffacdolive#808000turquoise#40e0d0
darkmagenta#8b008blightblue#add8e6olivedrab#6b8e23violet#ee82ee
darkolivegreen#556b2flightcoral#f08080orange#ffa500violetred#d02090
darkorange#ff8c00lightcyan#e0fffforangered#ff4500wheat#f5deb3
darkorchid#9932cclightgoldenrodyellow#fafad2orchid#da70d6white#ffffff
darkred#8b0000lightgray#d3d3d3palegoldenrod#eee8aawhitesmoke#f5f5f5
darksalmon#e9967alightgreen#90ee90palegreen#98fb98yellow#ffff00
darkseagreen#8fbc8flightpink#ffb6c1paleturquoise#afeeeeyellowgreen#9acd32
darkslateblue#483d8blightsalmon#ffa07apalevioletred#d87093windowtext#000000
darkslategray#2f4f4flightseagreen#20b2aapapayawhip#ffefd5

contextualSpacing Property

Specifies whether to remove an additional space (contextual spacing) between paragraphs of the same style.

Declaration

ts
contextualSpacing?: boolean

Property Value

TypeDescription
boolean

true to remove extra space between paragraphs, false to add extra space.

|

Remarks

To mark the change from one paragraph to another, the line spacing is increased. To prevent this behavior, set the contextualSpacing to true.

firstLineIndent Property

Specifies the indent for the first line in a paragraph.

Declaration

ts
firstLineIndent?: number

Property Value

TypeDescription
number

The indent for the first line, in twips.

|

Remarks

If the firstLineIndentType property is set to a value different from None , the indent value of a paragraph is specified by its firstLineIndent property.

firstLineIndentType Property

Specifies whether and how the first line in a paragraph is indented.

Declaration

ts
firstLineIndentType?: ParagraphFirstLineIndent

Property Value

TypeDescription
ParagraphFirstLineIndent

The first line’s indent.

|

Remarks

If the firstLineIndentType property is set to a value different from None , the indent value of a paragraph is specified by its firstLineIndent property.

keepLinesTogether Property

Specifies whether all lines in a paragraph should appear on the same page.

Declaration

ts
keepLinesTogether?: boolean

Property Value

TypeDescription
boolean

true , to keep paragraph lines together; otherwise, false.

|

Remarks

Set the keepLinesTogether property to true to prevent all page breaks that interrupt a paragraph. If paragraph lines do not fit on the current page, the whole paragraph is moved to the next page.

leftIndent Property

Specifies the left indent for a paragraph.

Declaration

ts
leftIndent?: number

Property Value

TypeDescription
number

The left indent, in twips, or undefined to indicate a mix of values.

|

lineSpacing Property

Specifies a line spacing value.

Declaration

ts
lineSpacing?: number

Property Value

TypeDescription
number

The line spacing, in twips, or undefined to indicate a mix of values.

|

lineSpacingType Property

Specifies the type of spacing between lines in a paragraph.

Declaration

ts
lineSpacingType?: ParagraphLineSpacingType

Property Value

TypeDescription
ParagraphLineSpacingType

The line spacing type.

|

outlineLevel Property

Specifies the outline level of a paragraph.

Declaration

ts
outlineLevel?: number

Property Value

TypeDescription
number

The level number, or undefined to indicate a mix of values.

|

pageBreakBefore Property

Specifies whether to insert a page break before a paragraph.

Declaration

ts
pageBreakBefore?: boolean

Property Value

TypeDescription
boolean

true if a page break is inserted before a paragraph; otherwise, false or undefined, for a mixture of true and false.

|

rightIndent Property

Specifies the right indent for a paragraph.

Declaration

ts
rightIndent?: number

Property Value

TypeDescription
number

The right indent, in twips, or undefined to indicate a mix of values.

|

spacingAfter Property

Specifies the spacing after a paragraph.

Declaration

ts
spacingAfter?: number

Property Value

TypeDescription
number

The spacing after a paragraph, in twips, or undefined to indicate a mix of values.

|

spacingBefore Property

Specifies the spacing before a paragraph.

Declaration

ts
spacingBefore?: number

Property Value

TypeDescription
number

The spacing before a paragraph, in twips, or undefined to indicate a mix of values.

|