C# Класс ImageGlass.Library.FileAssociations.ProgramAssociationInfo

Provides instance of ProgramaticID that can be referenced by multiple different extensions.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
progId string

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
TryGetInt ( byte arr, int &val ) : bool

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

Описание методов

AddVerb() публичный Метод

Adds single ProgramVerb that define the verb supported by this ProgID.
public AddVerb ( ProgramVerb verb ) : void
verb ProgramVerb Single that contains supported verb.
Результат void

AddVerbInternal() защищенный Метод

Adds single ProgramVerb that define the verb supported by this ProgID.
protected AddVerbInternal ( ProgramVerb verb ) : void
verb ProgramVerb Single that contains supported verb.
Результат void

Create() публичный Метод

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.
Результат ProgramAssociationInfo

Create() публичный Метод

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.
Результат ProgramAssociationInfo

Create() публичный Метод

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.
Результат ProgramAssociationInfo

Create() публичный Метод

Creates program id within registry.
public Create ( ) : void
Результат void

Delete() публичный Метод

Deletes the current prog id.
public Delete ( ) : void
Результат void

GetAlwaysShowExt() защищенный Метод

Gets a value that determines if the file's extension will always be displayed.
protected GetAlwaysShowExt ( ) : bool
Результат bool

GetDefaultIcon() защищенный Метод

protected GetDefaultIcon ( ) : ProgramIcon
Результат ProgramIcon

GetDescription() защищенный Метод

Gets a value that determines what the friendly name of the file is.
protected GetDescription ( ) : string
Результат string

GetEditFlags() защищенный Метод

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
Результат EditFlags

GetVerbs() защищенный Метод

Gets an array of ProgramVerb that define the verbs supported by this ProgID.
protected GetVerbs ( ) : ImageGlass.Library.FileAssociations.ProgramVerb[]
Результат ImageGlass.Library.FileAssociations.ProgramVerb[]

ProgramAssociationInfo() публичный Метод

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.
Результат System

RemoveVerb() публичный Метод

Removes single ProgramVerb that define the verb supported by this ProgID.
public RemoveVerb ( ProgramVerb verb ) : void
verb ProgramVerb Single that contains supported verb.
Результат void

RemoveVerb() публичный Метод

Removes single ProgramVerb that define the verb supported by this ProgID.
public RemoveVerb ( string name ) : void
name string Name of verb to remove.
Результат void

RemoveVerbInternal() защищенный Метод

Removes single ProgramVerb that define the verb supported by this ProgID.
protected RemoveVerbInternal ( string name ) : void
name string Name of verb to remove
Результат void

SetAlwaysShowExt() защищенный Метод

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.
Результат void

SetDefaultIcon() защищенный Метод

protected SetDefaultIcon ( ProgramIcon icon ) : void
icon ProgramIcon
Результат void

SetDescription() защищенный Метод

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.
Результат void

SetEditFlags() защищенный Метод

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.
Результат void

SetVerbs() защищенный Метод

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.
Результат void

Описание свойств

progId защищенное свойство

Actual name of Programmatic Identifier
protected string progId
Результат string