WrapText
Propiedad TextFrameFormat.WrapText
Verdadero si el texto se ajusta a los márgenes del TextFrame. Lectura/escritura NullableBool
.
public NullableBool WrapText { get; set; }
Ejemplos
El siguiente código de ejemplo muestra cómo ajustar el texto en una presentación.
[C#]
using (Presentation pres = new Presentation())
{
ISlide slide = pres.Slides[0];
IAutoShape autoShape = slide.Shapes.AddAutoShape(ShapeType.Rectangle, 30, 30, 350, 100);
Portion portion = new Portion("lorem ipsum...");
portion.PortionFormat.FillFormat.SolidFillColor.Color = Color.Black;
portion.PortionFormat.FillFormat.FillType = FillType.Solid;
autoShape.TextFrame.Paragraphs[0].Portions.Add(portion);
ITextFrameFormat textFrameFormat = autoShape.TextFrame.TextFrameFormat;
textFrameFormat.WrapText = NullableBool.True;
pres.Save("Output-presentation.pptx", SaveFormat.Pptx);
}
Véase También
- enum NullableBool
- class TextFrameFormat
- namespace Aspose.Slides
- assembly Aspose.Slides