You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Image.cs 717B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using DocumentFormat.OpenXml.Packaging;
  6. namespace Novacode
  7. {
  8. /// <summary>
  9. /// Represents an Image embedded in a document.
  10. /// </summary>
  11. public class Image
  12. {
  13. /// <summary>
  14. /// A unique id which identifies this Image.
  15. /// </summary>
  16. private string id;
  17. /// <summary>
  18. /// Returns the id of this Image.
  19. /// </summary>
  20. public string Id
  21. {
  22. get {return id;}
  23. }
  24. internal Image(ImagePart ip)
  25. {
  26. id = DocX.mainDocumentPart.GetIdOfPart(ip);
  27. }
  28. }
  29. }