Class representing the paragraph properties.
Name | Description |
GetClassType | Returns a type of the ApiParaPr class. |
GetIndFirstLine | Returns the paragraph first line indentation. |
GetIndLeft | Returns the paragraph left side indentation. |
GetIndRight | Returns the paragraph right side indentation. |
GetJc | Returns the paragraph contents justification. |
GetSpacingAfter | Returns the spacing after value of the current paragraph. |
GetSpacingBefore | Returns the spacing before value of the current paragraph. |
GetSpacingLineRule | Returns the paragraph line spacing rule. |
GetSpacingLineValue | Returns the paragraph line spacing value. |
SetBullet | Sets the bullet or numbering to the current paragraph. |
SetIndFirstLine | Sets the paragraph first line indentation. |
SetIndLeft | Sets the paragraph left side indentation. |
SetIndRight | Sets the paragraph right side indentation. |
SetJc | Sets the paragraph contents justification. |
SetSpacingAfter | Sets the spacing after the current paragraph. If the value of the isAfterAuto parameter is true, then any value of the nAfter is ignored. If isAfterAuto parameter is not specified, then it will be interpreted as false. |
SetSpacingBefore | Sets the spacing before the current paragraph. If the value of the isBeforeAuto parameter is true, then any value of the nBefore is ignored. If isBeforeAuto parameter is not specified, then it will be interpreted as false. |
SetSpacingLine | Sets the paragraph line spacing. If the value of the sLineRule parameter is either "atLeast" or "exact", then the value of nLine will be interpreted as twentieths of a point. If the value of the sLineRule parameter is "auto", then the value of the nLine parameter will be interpreted as 240ths of a line. |
SetTabs | Specifies a sequence of custom tab stops which will be used for any tab characters in the current paragraph. Warning: The lengths of aPos array and aVal array MUST BE equal to each other. |
builder.CreateFile("pptx"); var oPresentation = Api.GetPresentation(); var oSlide = oPresentation.GetSlideByIndex(0); oSlide.RemoveAllObjects(); var oGs1 = Api.CreateGradientStop(Api.CreateRGBColor(255, 213, 191), 0); var oGs2 = Api.CreateGradientStop(Api.CreateRGBColor(255, 111, 61), 100000); var oFill = Api.CreateRadialGradientFill([oGs1, oGs2]); var oStroke = Api.CreateStroke(0, Api.CreateNoFill()); var oShape = Api.CreateShape("flowChartMagneticTape", 300 * 36000, 130 * 36000, oFill, oStroke); oShape.SetPosition(608400, 1267200); var oDocContent = oShape.GetDocContent(); var oParagraph = oDocContent.GetElement(0); var oParaPr = oParagraph.GetParaPr(); oParaPr.SetJc("center"); oParaPr.SetIndFirstLine(1440); oParagraph.AddText("This is a paragraph with the text in it aligned by the center. "); oParagraph.AddText("The justification is specified in the paragraph style. "); oParagraph.AddText("These sentences are used to add lines for demonstrative purposes. "); oParagraph.AddText("These sentences are used to add lines for demonstrative purposes."); var sClassType = oParaPr.GetClassType(); oParagraph = Api.CreateParagraph(); oParagraph.AddText("Class Type = " + sClassType); oParagraph.AddLineBreak(); oParagraph.AddText("First line indent: " + oParaPr.GetIndFirstLine()); oDocContent.Push(oParagraph); oSlide.AddObject(oShape); builder.SaveFile("pptx", "ApiParaPr.pptx"); builder.CloseFile();