Click or drag to resize

PFQuickPartsBinder Class

This class injects Xml metadata and properties in a .docx file allowing adding QuickParts bound to an item's properties. Dynamic File System
Inheritance Hierarchy
SystemObject
  Packflow.CorePFManagedObject
    Packflow.Interface.OfficePFQuickPartsBinder

Namespace:  Packflow.Interface.Office
Assembly:  MicaSystems.Packflow.Interface (in MicaSystems.Packflow.Interface.dll) Version: 1.0.0.0 (2.0.0.223)
Syntax
C#
public class PFQuickPartsBinder : PFManagedObject

The PFQuickPartsBinder type exposes the following members.

Constructors
  NameDescription
Public methodPFQuickPartsBinder
Creates a PFQuickPartsBinder based on a chosen contentType.
Top
Properties
  NameDescription
Public propertyContentType
Gets the contentType this PFQuickPartsBinder is bound to.
Public propertyDateObjectCreation
Gets the date of the creation of this object in memory.
(Inherited from PFManagedObject.)
Public propertyLogger
Gets the logger, used to log any useful warning, error or information in the database.
(Inherited from PFManagedObject.)
Public propertyLogIdentification
Gets a technical text representing this object.
(Inherited from PFManagedObject.)
Top
Methods
  NameDescription
Public methodStatic memberCreate
Creates a PFQuickPartsBinder based on field parameters.
Protected methodInitializeLogger
Gets the current PFLogger instance.
(Overrides PFManagedObjectInitializeLogger.)
Public methodStatic memberIsBindable
Checks if the file is bound on QuickParts mechanism in modeling. Means it will get updated automatically on relevant events.
Public methodRefreshFile(PFFile, PFItem)
Updates QuickParts custom xmls in the instance file, based on sourceItem data, and returns a stream of the file content. The source item must be from the content type found in 'ContentType' property. If the instanceFile is a template, while saving content on another file, don't forget to copy the PFFile.QuickPartsSourceInfo property from instanceFile to the other file after refresh.
Public methodRefreshFile(PFFile, PFItem, ListPFOfficeBindingValue)
Updates QuickParts custom xmls in the instance file, based on sourceItem data, and returns a stream of the file content. The source item must be from the content type found in 'ContentType' property. If the instanceFile is a template, while saving content on another file, don't forget to copy the PFFile.QuickPartsSourceInfo property from instanceFile to the other file after refresh.
Public methodRefreshFile2(PFFile, PFItem)
Updates QuickParts custom xmls in the instance file, based on sourceItem data, and returns a byte array of the file content. The source item must be from the content type found in 'ContentType' property. If the instanceFile is a template, while saving content on another file later, don't forget to copy the PFFile.QuickPartsSourceInfo property from instanceFile to the other file after refresh.
Public methodRefreshFile2(PFFile, PFItem, ListPFOfficeBindingValue)
Updates QuickParts custom xmls in the instance file, based on sourceItem data, and returns a byte array of the file content. The source item must be from the content type found in 'ContentType' property. If the instanceFile is a template, while saving content on another file later, don't forget to copy the PFFile.QuickPartsSourceInfo property from instanceFile to the other file after refresh.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodGetString
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
See Also