C# Class ImageGlass.Library.FileAssociations.ProgramAssociationInfo

Provides instance of ProgramaticID that can be referenced by multiple different extensions.
Show file Open project: d2phap/ImageGlass Class Usage Examples

Protected Properties

Property Type Description
progId string

Public Methods

Method Description
AddVerb ( ProgramVerb verb ) : void

Adds single ProgramVerb that define the verb supported by this ProgID.

Create ( ProgramVerb verb ) : ProgramAssociationInfo

Creates actual Programmatic Identifier key in registry that is used by other extensions.

Create ( string description, EditFlags editFlags, ProgramVerb verb ) : ProgramAssociationInfo

Creates actual Programmatic Identifier key in registry that is used by other extensions.

Create ( string description, ProgramVerb verb ) : ProgramAssociationInfo

Creates actual Programmatic Identifier key in registry that is used by other extensions.

Create ( ) : void

Creates program id within registry.

Delete ( ) : void

Deletes the current prog id.

ProgramAssociationInfo ( string progId ) : System

Initializes a new instance of the ProgramAssociationInfo class, which acts as a wrapper for a Programmatic Identifier within the registry.

RemoveVerb ( ProgramVerb verb ) : void

Removes single ProgramVerb that define the verb supported by this ProgID.

RemoveVerb ( string name ) : void

Removes single ProgramVerb that define the verb supported by this ProgID.

Protected Methods

Method Description
AddVerbInternal ( ProgramVerb verb ) : void

Adds single ProgramVerb that define the verb supported by this ProgID.

GetAlwaysShowExt ( ) : bool

Gets a value that determines if the file's extension will always be displayed.

GetDefaultIcon ( ) : ProgramIcon

GetDescription ( ) : string

Gets a value that determines what the friendly name of the file is.

GetEditFlags ( ) : EditFlags

Gets a value that determines numerous shell options for extension as well as limitations on how extension properties can be edited by programs that honor EditFlags

GetVerbs ( ) : ImageGlass.Library.FileAssociations.ProgramVerb[]

Gets an array of ProgramVerb that define the verbs supported by this ProgID.

RemoveVerbInternal ( string name ) : void

Removes single ProgramVerb that define the verb supported by this ProgID.

SetAlwaysShowExt ( bool value ) : void

Sets a value that determines if the file's extension will always be shown.

SetDefaultIcon ( ProgramIcon icon ) : void

SetDescription ( string description ) : void

Sets a value that determines what the friendly name of the file is.

SetEditFlags ( EditFlags flags ) : void

Sets a value that determines numerous shell options for extension as well as limitations on how extension properties can be edited by programs that honor EditFlags

SetVerbs ( ProgramVerb verbs ) : void

Sets an array of ProgramVerb that define the verbs supported by this ProgID

Private Methods

Method Description
TryGetInt ( byte arr, int &val ) : bool

Attempts to convert the value within the input byte array into an integer.

Method Details

AddVerb() public method

Adds single ProgramVerb that define the verb supported by this ProgID.
public AddVerb ( ProgramVerb verb ) : void
verb ProgramVerb Single that contains supported verb.
return void

AddVerbInternal() protected method

Adds single ProgramVerb that define the verb supported by this ProgID.
protected AddVerbInternal ( ProgramVerb verb ) : void
verb ProgramVerb Single that contains supported verb.
return void

Create() public method

Creates actual Programmatic Identifier key in registry that is used by other extensions.
public Create ( ProgramVerb verb ) : ProgramAssociationInfo
verb ProgramVerb Single that contains supported verb.
return ProgramAssociationInfo

Create() public method

Creates actual Programmatic Identifier key in registry that is used by other extensions.
public Create ( string description, EditFlags editFlags, ProgramVerb verb ) : ProgramAssociationInfo
description string Friendly description of file type.
editFlags EditFlags for program file type.
verb ProgramVerb Single that contains supported verbs.
return ProgramAssociationInfo

Create() public method

Creates actual Programmatic Identifier key in registry that is used by other extensions.
public Create ( string description, ProgramVerb verb ) : ProgramAssociationInfo
description string Friendly description of file type.
verb ProgramVerb Single that contains supported verbs.
return ProgramAssociationInfo

Create() public method

Creates program id within registry.
public Create ( ) : void
return void

Delete() public method

Deletes the current prog id.
public Delete ( ) : void
return void

GetAlwaysShowExt() protected method

Gets a value that determines if the file's extension will always be displayed.
protected GetAlwaysShowExt ( ) : bool
return bool

GetDefaultIcon() protected method

protected GetDefaultIcon ( ) : ProgramIcon
return ProgramIcon

GetDescription() protected method

Gets a value that determines what the friendly name of the file is.
protected GetDescription ( ) : string
return string

GetEditFlags() protected method

Gets a value that determines numerous shell options for extension as well as limitations on how extension properties can be edited by programs that honor EditFlags
protected GetEditFlags ( ) : EditFlags
return EditFlags

GetVerbs() protected method

Gets an array of ProgramVerb that define the verbs supported by this ProgID.
protected GetVerbs ( ) : ImageGlass.Library.FileAssociations.ProgramVerb[]
return ImageGlass.Library.FileAssociations.ProgramVerb[]

ProgramAssociationInfo() public method

Initializes a new instance of the ProgramAssociationInfo class, which acts as a wrapper for a Programmatic Identifier within the registry.
public ProgramAssociationInfo ( string progId ) : System
progId string Name of program id to interface with.
return System

RemoveVerb() public method

Removes single ProgramVerb that define the verb supported by this ProgID.
public RemoveVerb ( ProgramVerb verb ) : void
verb ProgramVerb Single that contains supported verb.
return void

RemoveVerb() public method

Removes single ProgramVerb that define the verb supported by this ProgID.
public RemoveVerb ( string name ) : void
name string Name of verb to remove.
return void

RemoveVerbInternal() protected method

Removes single ProgramVerb that define the verb supported by this ProgID.
protected RemoveVerbInternal ( string name ) : void
name string Name of verb to remove
return void

SetAlwaysShowExt() protected method

Sets a value that determines if the file's extension will always be shown.
protected SetAlwaysShowExt ( bool value ) : void
value bool Value that specifies if the file's extension should be always displayed.
return void

SetDefaultIcon() protected method

protected SetDefaultIcon ( ProgramIcon icon ) : void
icon ProgramIcon
return void

SetDescription() protected method

Sets a value that determines what the friendly name of the file is.
protected SetDescription ( string description ) : void
description string Friendly description of file type.
return void

SetEditFlags() protected method

Sets a value that determines numerous shell options for extension as well as limitations on how extension properties can be edited by programs that honor EditFlags
protected SetEditFlags ( EditFlags flags ) : void
flags EditFlags for program file type.
return void

SetVerbs() protected method

Sets an array of ProgramVerb that define the verbs supported by this ProgID
protected SetVerbs ( ProgramVerb verbs ) : void
verbs ProgramVerb Array of that contains verbs to be set.
return void

Property Details

progId protected property

Actual name of Programmatic Identifier
protected string progId
return string