Class FilenameHelper
File name helper.
Inherited Members
Namespace: VisioForge.Core.Helpers
Assembly: VisioForge.Core.dll
Syntax
public static class FilenameHelper
Methods
ChangeFileExt(string, string)
Changes file extension.
Declaration
public static string ChangeFileExt(string filename, string ext)
Parameters
Type | Name | Description |
---|---|---|
string | filename | File name. |
string | ext | Extension. |
Returns
Type | Description |
---|---|
string | The string. |
GetFileExt(string)
Gets file extension.
Declaration
public static string GetFileExt(string fileName)
Parameters
Type | Name | Description |
---|---|---|
string | fileName | File name. |
Returns
Type | Description |
---|---|
string | The string. |
IsAudioFile(string)
Determines whether the specified filename is audio file.
Declaration
public static bool IsAudioFile(string filename)
Parameters
Type | Name | Description |
---|---|---|
string | filename | The filename. |
Returns
Type | Description |
---|---|
bool |
|
IsImageFile(string)
Determines whether the specified filename is image.
Declaration
public static bool IsImageFile(string filename)
Parameters
Type | Name | Description |
---|---|---|
string | filename | The filename. |
Returns
Type | Description |
---|---|
bool |
|