VisioForge (c) 2025

Search Results for

    Class FilenameHelper

    File name helper.

    Inheritance
    object
    FilenameHelper
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    true if the specified filename is audio file; otherwise, false.

    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

    true if the specified filename is image; otherwise, false.