Search Results for

    Show / Hide Table of Contents

    Class Utility

    Defines a set of utility methods.

    Inheritance
    System.Object
    Utility
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Quark.CMSAdapters.Core
    Assembly: Quark.CMSAdapters.Core.dll
    Syntax
    public class Utility

    Methods

    ConvertHtmlToClipboardData(String)

    Converts the HTML to clipboard data.

    Declaration
    public static string ConvertHtmlToClipboardData(string html)
    Parameters
    Type Name Description
    System.String html

    The HTML.

    Returns
    Type Description
    System.String
    Exceptions
    Type Condition
    System.InvalidOperationException

    ConvertHtmlToClipboardData

    DeleteLocalFiles(String[], Nullable<FileDeletionOptions>)

    Deletes the local files as per the file deletion option.

    Declaration
    public static void DeleteLocalFiles(string[] filePaths, FileDeletionOptions? fileDeletionOption = default(FileDeletionOptions? ))
    Parameters
    Type Name Description
    System.String[] filePaths

    The file paths.

    System.Nullable<FileDeletionOptions> fileDeletionOption

    The file deletion options.

    GetRelativeSaveLocation(SaveLocationChoices, List<String>, String)

    Gets the relative save location.

    Declaration
    public static List<string> GetRelativeSaveLocation(SaveLocationChoices saveLocationChoice, List<string> parentSaveLocation, string relativeSaveLocation)
    Parameters
    Type Name Description
    SaveLocationChoices saveLocationChoice

    The save location choice.

    System.Collections.Generic.List<System.String> parentSaveLocation

    The parent save location.

    System.String relativeSaveLocation

    The relative save location.

    Returns
    Type Description
    System.Collections.Generic.List<System.String>

    SetForegroundWindow(IntPtr)

    Set forground window.

    Declaration
    public static extern bool SetForegroundWindow(IntPtr hWnd)
    Parameters
    Type Name Description
    System.IntPtr hWnd

    handle value.

    Returns
    Type Description
    System.Boolean

    boolean value.

    Extension Methods

    UtilityExtensions.DeepClone<T>(T)
    UtilityExtensions.IsMethodImplemented(Object, String)
    UtilityExtensions.LogError(Object, String)
    UtilityExtensions.ShowAndLogError(Object)
    UtilityExtensions.ShowAndLogError(Object, Window)
    UtilityExtensions.ShowAndLogError(Object, String, Window, String, String)
    UtilityExtensions.GetJsonValue<T>(Object, String, Boolean)
    UtilityExtensions.ToAssetInfo(Object, Nullable<Boolean>)
    In This Article
    Back to top © 2025 Quark Software Inc. All rights reserved.