# Class TCefCommandLineRef

Description
Hierarchy
Methods

## Unit

uCEFCommandLine

## Declaration

`type TCefCommandLineRef = class(TCefBaseRefCountedRef, ICefCommandLine)`

## Description

This item has no description.

## Hierarchy

- TInterfacedObject
- TCefBaseRefCountedRef
- TCefCommandLineRef

## Overview

### Methods

Protected | `function IsValid: Boolean;`
Protected | `function IsReadOnly: Boolean;`
Protected | `function Copy: ICefCommandLine;`
Protected | `procedure InitFromArgv(argc: Integer; const argv: PPAnsiChar);`
Protected | `procedure InitFromString(const commandLine: ustring);`
Protected | `procedure Reset;`
Protected | `function GetCommandLineString: ustring;`
Protected | `procedure GetArgv(var args: TStrings);`
Protected | `function GetProgram: ustring;`
Protected | `procedure SetProgram(const prog: ustring);`
Protected | `function HasSwitches: Boolean;`
Protected | `function HasSwitch(const name: ustring): Boolean;`
Protected | `function GetSwitchValue(const name: ustring): ustring;`
Protected | `function GetSwitches(var switches: TStrings): boolean; overload;`
Protected | `function GetSwitches(var SwitchKeys, SwitchValues: TStringList): boolean; overload;`
Protected | `procedure AppendSwitch(const name: ustring);`
Protected | `procedure AppendSwitchWithValue(const name, value: ustring);`
Protected | `function HasArguments: Boolean;`
Protected | `procedure GetArguments(var arguments: TStrings);`
Protected | `procedure AppendArgument(const argument: ustring);`
Protected | `procedure PrependWrapper(const wrapper: ustring);`
Protected | `procedure RemoveSwitch(const name_: ustring);`
Public | `class function UnWrap(data: Pointer): ICefCommandLine;`
Public | `class function New: ICefCommandLine;`
Public | `class function Global: ICefCommandLine;`

## Description

### Methods

Protected | `function IsValid: Boolean;`
This item has no description. Showing description inherited from ICefCommandLine.IsValid. Returns true (1) if this object is valid. Do not call any other functions if this function returns false (0).

Protected | `function IsReadOnly: Boolean;`
This item has no description. Showing description inherited from ICefCommandLine.IsReadOnly. Returns true (1) if the values of this object are read-only. Some APIs may expose read-only objects.

Protected | `function Copy: ICefCommandLine;`
This item has no description. Showing description inherited from ICefCommandLine.Copy. Returns a writable copy of this object.

Protected | `procedure InitFromArgv(argc: Integer; const argv: PPAnsiChar);`
This item has no description. Showing description inherited from ICefCommandLine.InitFromArgv. Initialize the command line with the specified |argc| and |argv| values. The first argument must be the name of the program. This function is only supported on non-Windows platforms.

Protected | `procedure InitFromString(const commandLine: ustring);`
This item has no description. Showing description inherited from ICefCommandLine.InitFromString. Initialize the command line with the string returned by calling GetCommandLineW(). This function is only supported on Windows.

Protected | `procedure Reset;`
This item has no description. Showing description inherited from ICefCommandLine.Reset. Reset the command-line switches and arguments but leave the program component unchanged.

Protected | `function GetCommandLineString: ustring;`
This item has no description. Showing description inherited from ICefCommandLine.GetCommandLineString. Constructs and returns the represented command line string. Use this function cautiously because quoting behavior is unclear.

Protected | `procedure GetArgv(var args: TStrings);`
This item has no description. Showing description inherited from ICefCommandLine.GetArgv. Retrieve the original command line string as a vector of strings. The argv array: `{ program, [(–|-|/)switch[=value]]*, [–], [argument]* }`

Protected | `function GetProgram: ustring;`
This item has no description. Showing description inherited from ICefCommandLine.GetProgram. Get the program part of the command line string (the first item).

Protected | `procedure SetProgram(const prog: ustring);`
This item has no description. Showing description inherited from ICefCommandLine.SetProgram. Set the program part of the command line string (the first item).

Protected | `function HasSwitches: Boolean;`
This item has no description. Showing description inherited from ICefCommandLine.HasSwitches. Returns true (1) if the command line has switches.

Protected | `function HasSwitch(const name: ustring): Boolean;`
This item has no description. Showing description inherited from ICefCommandLine.HasSwitch. Returns true (1) if the command line contains the given switch.

Protected | `function GetSwitchValue(const name: ustring): ustring;`
This item has no description. Showing description inherited from ICefCommandLine.GetSwitchValue. Returns the value associated with the given switch. If the switch has no value or isn't present this function returns the NULL string.

Protected | `function GetSwitches(var switches: TStrings): boolean; overload;`
This item has no description. Showing description inherited from ICefCommandLine.GetSwitches. Returns the map of switch names and values. If a switch has no value an NULL string is returned.

Protected | `function GetSwitches(var SwitchKeys, SwitchValues: TStringList): boolean; overload;`
This item has no description. Showing description inherited from ICefCommandLine.GetSwitches. Returns the map of switch names and values. If a switch has no value an NULL string is returned.

Protected | `procedure AppendSwitch(const name: ustring);`
This item has no description. Showing description inherited from ICefCommandLine.AppendSwitch. Add a switch to the end of the command line.

Protected | `procedure AppendSwitchWithValue(const name, value: ustring);`
This item has no description. Showing description inherited from ICefCommandLine.AppendSwitchWithValue. Add a switch with the specified value to the end of the command line. If the switch has no value pass an NULL value string.

Protected | `function HasArguments: Boolean;`
This item has no description. Showing description inherited from ICefCommandLine.HasArguments. True if there are remaining command line arguments.

Protected | `procedure GetArguments(var arguments: TStrings);`
This item has no description. Showing description inherited from ICefCommandLine.GetArguments. Get the remaining command line arguments.

Protected | `procedure AppendArgument(const argument: ustring);`
This item has no description. Showing description inherited from ICefCommandLine.AppendArgument. Add an argument to the end of the command line.

Protected | `procedure PrependWrapper(const wrapper: ustring);`
This item has no description. Showing description inherited from ICefCommandLine.PrependWrapper. Insert a command before the current command. Common for debuggers, like "valgrind" or "gdb –args".

Protected | `procedure RemoveSwitch(const name_: ustring);`
This item has no description. Showing description inherited from ICefCommandLine.RemoveSwitch. Remove a switch from the command line. If no such switch is present, this has no effect.

Public | `class function UnWrap(data: Pointer): ICefCommandLine;`
Returns a ICefCommandLine instance using a PCefCommandLine data pointer.

Public | `class function New: ICefCommandLine;`
Create a new ICefCommandLine instance.

Public | `class function Global: ICefCommandLine;`
Returns the singleton global ICefCommandLine object. The returned object will be read-only.

Generated by PasDoc 1.0.4.