Class CloneContext
Maintains source-to-destination mappings while slides are cloned between presentations. The mappings allow internal slide hyperlinks to be rewritten to the corresponding destination slides.
Inherited Members
Namespace: DRIT.Presentation
Assembly: DRIT.Presentation.dll
Syntax
public sealed class CloneContext
Methods
Create(Presentation, Presentation)
Creates a clone context for a source and destination presentation pair.
Declaration
public static CloneContext Create(Presentation sourcePresentation, Presentation destinationPresentation)
Parameters
| Type | Name | Description |
|---|---|---|
| Presentation | sourcePresentation | The presentation containing slides to clone. |
| Presentation | destinationPresentation | The presentation receiving cloned slides. |
Returns
| Type | Description |
|---|---|
| CloneContext | A context that can be passed to clone operations. |
Set(Slide, Slide)
Associates a source slide with an existing destination slide. This mapping is used to resolve internal slide hyperlinks while later slides are cloned.
Declaration
public void Set(Slide source, Slide destination)
Parameters
| Type | Name | Description |
|---|---|---|
| Slide | source | The source presentation slide. |
| Slide | destination | The destination presentation slide. |
TryGet(Slide, out Slide)
Gets the destination slide mapped to source.
Declaration
public bool TryGet(Slide source, out Slide destination)
Parameters
| Type | Name | Description |
|---|---|---|
| Slide | source | The source presentation slide. |
| Slide | destination | The mapped destination slide, if present. |
Returns
| Type | Description |
|---|---|
| bool |