Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PowerPointTextBoxScope

OfficeIMO.PowerPoint

Namespace
OfficeIMO.PowerPoint
Assembly
OfficeIMO.PowerPoint
Source revision
22fb5b2be3d2 with working tree changes
Modifiers
sealed

Edits one PowerPointTextBox: its fluent methods and keywords, each returning this scope.

Inheritance

  • object
  • PowerPointTextBoxScope

Usage

Explore 61 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 59

Accepted by parameters 2

Methods

public PowerPointTextBoxScope AccessibilityTitle(string? value) #

Sets PowerPointShape.Title: Gets or sets the concise accessibility title stored in the shape's non-visual properties.

Parameters

value string? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope AltText(string? value) #

Sets PowerPointShape.AltText: Alternative text description assigned to the shape.

Parameters

value string? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Blur(OfficeLength radius, bool grow = false) #

Applies a blur effect to the shape.

Parameters

radius OfficeIMO.OfficeLength required
The value.
grow bool = false optional
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Bold(bool bold = true) #

Sets PowerPointTextBox.Bold for the entire text box and returns this instance.

Parameters

bold bool = true optional
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Bottom(OfficeLength value) #

Sets PowerPointShape.Bottom: Bottom of the shape.

Parameters

value OfficeIMO.OfficeLength required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Bounds(PowerPointLayoutBox value) #

Sets PowerPointShape.Bounds: Gets or sets the shape bounds.

Parameters

value OfficeIMO.PowerPoint.PowerPointLayoutBox required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Bullet(string text, Action<PowerPointParagraphScope>? configure = null) #

Adds a new bulleted paragraph to the textbox.

Parameters

text string required
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointParagraphScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope CenterX(OfficeLength value) #

Sets PowerPointShape.CenterX: CenterX of the shape.

Parameters

value OfficeIMO.OfficeLength required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope CenterY(OfficeLength value) #

Sets PowerPointShape.CenterY: CenterY of the shape.

Parameters

value OfficeIMO.OfficeLength required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope ClickSound(Stream audio, string name, string contentType = "audio/wav", string extension = ".wav") #

Sets an embedded WAV or AIFF sound played when this shape is clicked.

Parameters

audio System.IO.Stream required
The value.
name string required
The value.
contentType string = "audio/wav" optional
The value.
extension string = ".wav" optional
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope ClickStopsSound(bool value = true) #

Controls whether clicking this shape stops the currently playing sound.

Parameters

value bool = true optional
The value. True when omitted.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Color(OfficeColor? color) #

Sets PowerPointTextBox.Color for the entire text box and returns this instance.

Parameters

color OfficeIMO.OfficeColor? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Decorative(bool value = true) #

Sets PowerPointShape.Decorative: Gets or sets whether assistive technology should treat this shape as decorative.

Parameters

value bool = true optional
The value; true when omitted.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope FillColor(OfficeColor? value) #

Sets PowerPointShape.FillColor: Gets or sets the local fill color, retaining native theme slots and opacity.

Parameters

value OfficeIMO.OfficeColor? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope FillTransparency(int? value) #

Sets PowerPointShape.FillTransparency: Gets or sets the fill transparency percentage (0-100). 0 = opaque, 100 = fully transparent.

Parameters

value int? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope FontFamily(string? fontFamily) #

Sets PowerPointTextBox.FontFamily for the entire text box and returns this instance.

Parameters

fontFamily string? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope FontSize(OfficeLength? fontSize) #

Sets PowerPointTextBox.FontSize for the entire text box and returns this instance.

Parameters

fontSize OfficeIMO.OfficeLength? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Glow(OfficeColor color, OfficeLength? radius = null, int transparencyPercent = 30) #

Applies a glow effect to the shape.

Parameters

color OfficeIMO.OfficeColor required
The value.
radius OfficeIMO.OfficeLength? = null optional
The value.
transparencyPercent int = 30 optional
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Height(OfficeLength value) #

Sets PowerPointShape.Height: Height of the shape.

Parameters

value OfficeIMO.OfficeLength required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Hidden(bool value = true) #

Sets PowerPointShape.Hidden: Gets or sets whether the shape is hidden.

Parameters

value bool = true optional
The value; true when omitted.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope HorizontalFlip(bool? value = true) #

Sets PowerPointShape.HorizontalFlip: Gets or sets horizontal flip.

Parameters

value bool? = true optional
The value; true when omitted.

Returns

PowerPointTextBoxScope The same scope.
Hyperlink 3 overloads
public PowerPointTextBoxScope Italic(bool italic = true) #

Sets PowerPointTextBox.Italic for the entire text box and returns this instance.

Parameters

italic bool = true optional
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Language(string language) #

Applies a BCP 47 language tag to every text run and paragraph end marker in this shape.

Parameters

language string required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Left(OfficeLength value) #

Sets PowerPointShape.Left: Left of the shape.

Parameters

value OfficeIMO.OfficeLength required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope LineEnds(OfficeLineMarkerKind? startType, OfficeLineMarkerKind? endType, PowerPointLineEndWidth? width = null, PowerPointLineEndLength? length = null) #

Sets arrowheads for line-based shapes.

Parameters

startType OfficeIMO.Drawing.OfficeLineMarkerKind? required
The value.
endType OfficeIMO.Drawing.OfficeLineMarkerKind? required
The value.
width OfficeIMO.PowerPoint.PowerPointLineEndWidth? = null optional
The value.
length OfficeIMO.PowerPoint.PowerPointLineEndLength? = null optional
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope MouseOverSound(Stream audio, string name, string contentType = "audio/wav", string extension = ".wav") #

Sets an embedded WAV or AIFF sound played when the pointer enters this shape.

Parameters

audio System.IO.Stream required
The value.
name string required
The value.
contentType string = "audio/wav" optional
The value.
extension string = ".wav" optional
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope MouseOverStopsSound(bool value = true) #

Controls whether entering this shape stops the currently playing sound.

Parameters

value bool = true optional
The value. True when omitted.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Name(string? value) #

Sets PowerPointShape.Name: Name assigned to the shape.

Parameters

value string? required
The value.

Returns

PowerPointTextBoxScope The same scope.
NumberedItem 2 overloads
public PowerPointTextBoxScope NumberedItem(string text, PowerPointNumberingScheme style, int startAt = 1, Action<PowerPointParagraphScope>? configure = null) #

Adds a numbered item to the textbox.

Parameters

text string required
The value.
style OfficeIMO.PowerPoint.PowerPointNumberingScheme required
The value.
startAt int = 1 optional
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointParagraphScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope NumberedItem(string text, int startAt = 1, Action<PowerPointParagraphScope>? configure = null) #

Adds a numbered item to the textbox using the default numbering style.

Parameters

text string required
The value.
startAt int = 1 optional
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointParagraphScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope OutlineColor(OfficeColor? value) #

Sets PowerPointShape.OutlineColor: Gets or sets the local outline color, retaining native theme slots and opacity.

Parameters

value OfficeIMO.OfficeColor? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope OutlineDash(PowerPointLineDashStyle? value) #

Sets PowerPointShape.OutlineDash: Gets or sets the outline dash preset.

Parameters

value OfficeIMO.PowerPoint.PowerPointLineDashStyle? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope OutlineTransparency(int? value) #

Sets PowerPointShape.OutlineTransparency: Gets or sets the outline transparency percentage (0-100). 0 is opaque and 100 is fully transparent.

Parameters

value int? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope OutlineWidth(OfficeLength? value) #

Sets PowerPointShape.OutlineWidth: Gets or sets the outline width.

Parameters

value OfficeIMO.OfficeLength? required
The value.

Returns

PowerPointTextBoxScope The same scope.
Paragraph 2 overloads
public PowerPointTextBoxScope Paragraph(string text, Action<PowerPointParagraphScope>? configure = null) #

Adds a paragraph to the text box.

Parameters

text string required
Paragraph text.
configure System.Action<OfficeIMO.PowerPoint.PowerPointParagraphScope>? = null optional
Adds runs and formats the paragraph.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Paragraph(Action<PowerPointParagraphScope> configure) #

Adds an empty paragraph to the text box and composes it.

Parameters

configure System.Action<OfficeIMO.PowerPoint.PowerPointParagraphScope> required
Adds runs and formats the paragraph.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope PlaceholderIndex(uint? value) #

Sets PowerPointTextBox.PlaceholderIndex: Gets or sets the placeholder index for this textbox.

Parameters

value uint? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope PlaceholderOrientation(PowerPointPlaceholderDirection? value) #

Sets PowerPointTextBox.PlaceholderOrientation: Gets or sets the placeholder orientation.

Parameters

value OfficeIMO.PowerPoint.PowerPointPlaceholderDirection? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope PlaceholderSize(PowerPointPlaceholderSize? value) #

Sets PowerPointTextBox.PlaceholderSize: Gets or sets the preferred placeholder size.

Parameters

value OfficeIMO.PowerPoint.PowerPointPlaceholderSize? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope PlaceholderType(PowerPointPlaceholderType? value) #

Sets PowerPointTextBox.PlaceholderType: Gets or sets the placeholder type for this textbox.

Parameters

value OfficeIMO.PowerPoint.PowerPointPlaceholderType? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Position(OfficeLength left, OfficeLength top) #

Sets position with explicit lengths.

Parameters

left OfficeIMO.OfficeLength required
The value.
top OfficeIMO.OfficeLength required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Reflection(OfficeLength? blur = null, OfficeLength? distance = null, double directionDegrees = 270, double fadeDirectionDegrees = 90, int startOpacityPercent = 50, int endOpacityPercent = 0, int startPositionPercent = 0, int endPositionPercent = 100, PowerPointRectangleAlignment? alignment = null, bool rotateWithShape = false) #

Applies a reflection effect to the shape.

Parameters

blur OfficeIMO.OfficeLength? = null optional
The value.
distance OfficeIMO.OfficeLength? = null optional
The value.
directionDegrees double = 270 optional
The value.
fadeDirectionDegrees double = 90 optional
The value.
startOpacityPercent int = 50 optional
The value.
endOpacityPercent int = 0 optional
The value.
startPositionPercent int = 0 optional
The value.
endPositionPercent int = 100 optional
The value.
alignment OfficeIMO.PowerPoint.PowerPointRectangleAlignment? = null optional
The value.
rotateWithShape bool = false optional
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Right(OfficeLength value) #

Sets PowerPointShape.Right: Right of the shape.

Parameters

value OfficeIMO.OfficeLength required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Rotation(double? value) #

Sets PowerPointShape.Rotation: Gets or sets rotation in degrees.

Parameters

value double? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Shadow(OfficeColor color, OfficeLength? blur = null, OfficeLength? distance = null, double angleDegrees = 45, int transparencyPercent = 35, bool rotateWithShape = false) #

Applies a drop shadow to the shape.

Parameters

color OfficeIMO.OfficeColor required
The value.
blur OfficeIMO.OfficeLength? = null optional
The value.
distance OfficeIMO.OfficeLength? = null optional
The value.
angleDegrees double = 45 optional
The value.
transparencyPercent int = 35 optional
The value.
rotateWithShape bool = false optional
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Size(OfficeLength width, OfficeLength height) #

Sets size with explicit lengths.

Parameters

width OfficeIMO.OfficeLength required
The value.
height OfficeIMO.OfficeLength required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope SoftEdges(OfficeLength radius) #

Applies a soft edges effect to the shape.

Parameters

radius OfficeIMO.OfficeLength required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Text(string value) #

Sets PowerPointTextBox.Text: Text contained in the textbox.

Parameters

value string required
The value.

Returns

PowerPointTextBoxScope The same scope.
TextAutoFit 2 overloads
public PowerPointTextBoxScope TextAutoFit(PowerPointTextAutoFit fit, PowerPointTextAutoFitOptions? options = null) #

Sets the auto-fit mode and optional Normal auto-fit options.

Parameters

fit OfficeIMO.PowerPoint.PowerPointTextAutoFit required
The value.
options OfficeIMO.PowerPoint.PowerPointTextAutoFitOptions? = null optional
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope TextAutoFit(PowerPointTextAutoFit? value) #

Sets PowerPointTextBox.TextAutoFit: Gets or sets the text auto-fit behavior.

Parameters

value OfficeIMO.PowerPoint.PowerPointTextAutoFit? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope TextAutoFitOptions(PowerPointTextAutoFitOptions? value) #

Sets PowerPointTextBox.TextAutoFitOptions: Gets or sets detailed auto-fit options (only applies to Normal auto-fit).

Parameters

value OfficeIMO.PowerPoint.PowerPointTextAutoFitOptions? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope TextDirection(PowerPointTextDirection? value) #

Sets PowerPointTextBox.TextDirection: Gets or sets the text direction (horizontal/vertical).

Parameters

value OfficeIMO.PowerPoint.PowerPointTextDirection? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope TextMarginBottom(OfficeLength? value) #

Sets PowerPointTextBox.TextMarginBottom: Gets or sets the bottom text margin as a physical length.

Parameters

value OfficeIMO.OfficeLength? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope TextMarginLeft(OfficeLength? value) #

Sets PowerPointTextBox.TextMarginLeft: Gets or sets the left text margin as a physical length.

Parameters

value OfficeIMO.OfficeLength? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope TextMarginRight(OfficeLength? value) #

Sets PowerPointTextBox.TextMarginRight: Gets or sets the right text margin as a physical length.

Parameters

value OfficeIMO.OfficeLength? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope TextMargins(OfficeLength left, OfficeLength top, OfficeLength right, OfficeLength bottom) #

Sets all text margins as a physical length.

Parameters

left OfficeIMO.OfficeLength required
The value.
top OfficeIMO.OfficeLength required
The value.
right OfficeIMO.OfficeLength required
The value.
bottom OfficeIMO.OfficeLength required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope TextMarginTop(OfficeLength? value) #

Sets PowerPointTextBox.TextMarginTop: Gets or sets the top text margin as a physical length.

Parameters

value OfficeIMO.OfficeLength? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope TextVerticalAlignment(PowerPointTextVerticalAlignment? value) #

Sets PowerPointTextBox.TextVerticalAlignment: Gets or sets the vertical anchoring of text inside the textbox.

Parameters

value OfficeIMO.PowerPoint.PowerPointTextVerticalAlignment? required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Top(OfficeLength value) #

Sets PowerPointShape.Top: Top of the shape.

Parameters

value OfficeIMO.OfficeLength required
The value.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope VerticalFlip(bool? value = true) #

Sets PowerPointShape.VerticalFlip: Gets or sets vertical flip.

Parameters

value bool? = true optional
The value; true when omitted.

Returns

PowerPointTextBoxScope The same scope.
public PowerPointTextBoxScope Width(OfficeLength value) #

Sets PowerPointShape.Width: Width of the shape.

Parameters

value OfficeIMO.OfficeLength required
The value.

Returns

PowerPointTextBoxScope The same scope.

Properties

public PowerPointTextBox Model { get; } #

The PowerPointTextBox this scope edits, for plain C# inside a lambda.