API Reference
Class
WordContentControlPictureValue
Represents a picture content-control value that can be extracted from or supplied to a form map.
Inheritance
- Object
- WordContentControlPictureValue
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Methods
public static WordContentControlPictureValue FromBytes(Byte[] bytes, String fileName) #Returns:
WordContentControlPictureValueCreates a picture value from image bytes.
Parameters
- bytes System.Byte[]
- fileName System.String
public static WordContentControlPictureValue FromFile(String filePath) #Returns:
WordContentControlPictureValueCreates a picture value from a local image path.
Parameters
- filePath System.String
Inherited Methods
Properties
public String FilePath { get; } #Optional source file path for a replacement image.
public Byte[] Bytes { get; } #Embedded image bytes, when the value was extracted from package content or supplied from memory.
public String FileName { get; } #File name used to infer image type for byte-backed replacements.
public Uri ExternalUri { get; } #External image URI when the extracted picture is linked instead of embedded.
public String RelationshipId { get; } #Relationship id for an extracted external image, when available.
public Boolean IsExternal { get; } #True when the value describes an externally linked image.