DocumentHelperAddGroupedAttachment Method (TreeNode, Guid, Guid, String, Int32, Int32, Int32) |
Adds specified group attachment to the document or updates the attachment if already present.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax public static DocumentAttachment AddGroupedAttachment(
TreeNode node,
Guid attachmentGuid,
Guid groupGuid,
string file,
int width = -1,
int height = -1,
int maxSideSize = -1
)
Parameters
- node
- Type: CMS.DocumentEngineTreeNode
Document node - attachmentGuid
- Type: SystemGuid
Attachment GUID - groupGuid
- Type: SystemGuid
GUID of the attachment group - file
- Type: SystemString
Attachment file path - width (Optional)
- Type: SystemInt32
New width of the image attachment - height (Optional)
- Type: SystemInt32
New height of the image attachment - maxSideSize (Optional)
- Type: SystemInt32
Maximum side size of the image attachment
Return Value
Type:
DocumentAttachmentSee Also