Click or drag to resize

ExtensionsAddFormat Method (IDataObjectFormats, String, String, Encoding)

Adds a format to the data object. This format will be used only if at least one DataObject is added.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static void AddFormat(
	this IDataObjectFormats formats,
	string format,
	string text,
	Encoding encoding = null
)

Parameters

formats
Type: callback.ShellBoost.CoreIDataObjectFormats
The formats.
format
Type: SystemString
The format name.
text
Type: SystemString
The text.
encoding (Optional)
Type: System.TextEncoding
The encoding.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDataObjectFormats. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionformat or text is null.
See Also