| 1234567891011121314151617181920212223242526272829303132 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using DocumentFormat.OpenXml.Packaging;
-
- namespace Novacode
- {
- /// <summary>
- /// Represents an Image embedded in a document.
- /// </summary>
- public class Image
- {
- /// <summary>
- /// A unique id which identifies this Image.
- /// </summary>
- private string id;
-
- /// <summary>
- /// Returns the id of this Image.
- /// </summary>
- public string Id
- {
- get {return id;}
- }
-
- internal Image(ImagePart ip)
- {
- id = DocX.mainDocumentPart.GetIdOfPart(ip);
- }
- }
- }
|