Class AbstractSlide
Provides the common content and text operations for slides, masters, and layouts.
Inherited Members
Namespace: DRIT.Presentation
Assembly: DRIT.Presentation.dll
Syntax
public abstract class AbstractSlide
Constructors
AbstractSlide()
Initializes a slide-like object with an empty group of drawing objects.
Declaration
protected AbstractSlide()
Properties
Background
Gets or sets the background for this slide, master, or layout.
When null, the background is inherited from the parent
(layout or master). Maps to p:cSld/p:bg.
Declaration
public SlideBackground Background { get; set; }
Property Value
| Type | Description |
|---|---|
| SlideBackground |
Content
Gets the group containing the drawing objects on this slide-like object.
Declaration
public GroupShape Content { get; }
Property Value
| Type | Description |
|---|---|
| GroupShape |
Methods
FindAll(string, StringComparison)
Finds all matches of searchText in every text-bearing object on this slide.
Declaration
public IReadOnlyList<SlideTextMatch> FindAll(string searchText, StringComparison comparison = StringComparison.Ordinal)
Parameters
| Type | Name | Description |
|---|---|---|
| string | searchText | |
| StringComparison | comparison |
Returns
| Type | Description |
|---|---|
| IReadOnlyList<SlideTextMatch> |
Replace(string, string, StringComparison)
Replaces all occurrences of oldValue with newValue
in every text-bearing object on this slide.
Declaration
public int Replace(string oldValue, string newValue, StringComparison comparison = StringComparison.Ordinal)
Parameters
| Type | Name | Description |
|---|---|---|
| string | oldValue | |
| string | newValue | |
| StringComparison | comparison |
Returns
| Type | Description |
|---|---|
| int |