SPColor.Open method (SPFile, Boolean)
Opens an SPColor file given an SPFile
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function Open ( _
file As SPFile, _
readPublishedVersion As Boolean _
) As SPColor
'Usage
Dim file As SPFile
Dim readPublishedVersion As Boolean
Dim returnValue As SPColor
returnValue = SPColor.Open(file, readPublishedVersion)
public static SPColor Open(
SPFile file,
bool readPublishedVersion
)
Parameters
file
Type: Microsoft.SharePoint.SPFileThe color palette file to open
readPublishedVersion
Type: System.BooleanWhether to look for the published version of the file only. Note that if there are no published versions of the specified file, the method will return null.
Return value
Type: Microsoft.SharePoint.Utilities.SPColor
An SPColor object representing the color palette opened, or null if no such file was found.