Skip to main content
Skip table of contents

Utilities

Utilities Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.text
  iTextSharp.text.Utilities[[Utilities]]
  end

Members

Methods

Public Static methods
ReturnsName
object``[][]AddToArray(object``[][] original, object``[] item)
boolCheckTrueOrFalse(Properties attributes, string key)
floatComputeTabSpace(...)
stringConvertFromUtf32(int codePoint)
stringConvertToHex(byte``[] bytes)
intConvertToUtf32(...)
ICollection<K>GetKeySet(Dictionary<K, V> table)
floatInchesToMillimeters(float value)
floatInchesToPoints(float value)
boolIsSurrogateHigh(char c)
boolIsSurrogateLow(char c)
boolIsSurrogatePair(...)
floatMax(float``[] array)
floatMillimetersToInches(float value)
floatMillimetersToPoints(float value)
floatMin(float``[] array)
floatPointsToInches(float value)
floatPointsToMillimeters(float value)
stringReadFileToString(string path)
voidSkip(Stream istr, int size)
This method is an alternative for the Stream.Skip()-method
that doesn't seem to work properly for big values of size.
UriToURL(string filename)
This method makes a valid URL from a given filename.
stringUnEscapeURL(string src)

Details

Constructors

Utilities
public Utilities()

Methods

GetKeySet

Source code

public static ICollection<K> GetKeySet<K, V>(Dictionary<K, V> table)
where K : 
where V : 
Arguments
TypeNameDescription
Dictionary<K, V>table
AddToArray

Source code

public static object AddToArray(object[][] original, object[] item)
Arguments
TypeNameDescription
object``[][]original
object``[]item
CheckTrueOrFalse

Source code

public static bool CheckTrueOrFalse(Properties attributes, string key)
Arguments
TypeNameDescription
Propertiesattributes
stringkey
ToURL

Source code

public static Uri ToURL(string filename)
Arguments
TypeNameDescription
stringfilenamea given filename
Summary

This method makes a valid URL from a given filename.

Remarks
Returns

a valid URL

UnEscapeURL

Source code

public static string UnEscapeURL(string src)
Arguments
TypeNameDescription
stringsrc
Skip

Source code

public static void Skip(Stream istr, int size)
Arguments
TypeNameDescription
Streamistrthe stream
intsizethe number of bytes to skip
Summary

This method is an alternative for the Stream.Skip()-method that doesn't seem to work properly for big values of size.

MillimetersToPoints

Source code

public static float MillimetersToPoints(float value)
Arguments
TypeNameDescription
floatvalue
MillimetersToInches

Source code

public static float MillimetersToInches(float value)
Arguments
TypeNameDescription
floatvalue
PointsToMillimeters

Source code

public static float PointsToMillimeters(float value)
Arguments
TypeNameDescription
floatvalue
PointsToInches

Source code

public static float PointsToInches(float value)
Arguments
TypeNameDescription
floatvalue
InchesToMillimeters

Source code

public static float InchesToMillimeters(float value)
Arguments
TypeNameDescription
floatvalue
InchesToPoints

Source code

public static float InchesToPoints(float value)
Arguments
TypeNameDescription
floatvalue
IsSurrogateHigh

Source code

public static bool IsSurrogateHigh(char c)
Arguments
TypeNameDescription
charc
IsSurrogateLow

Source code

public static bool IsSurrogateLow(char c)
Arguments
TypeNameDescription
charc
IsSurrogatePair [1/2]

Source code

public static bool IsSurrogatePair(string text, int idx)
Arguments
TypeNameDescription
stringtext
intidx
IsSurrogatePair [2/2]

Source code

public static bool IsSurrogatePair(char[] text, int idx)
Arguments
TypeNameDescription
char``[]text
intidx
ConvertToUtf32 [1/3]

Source code

public static int ConvertToUtf32(char highSurrogate, char lowSurrogate)
Arguments
TypeNameDescription
charhighSurrogate
charlowSurrogate
ConvertToUtf32 [2/3]

Source code

public static int ConvertToUtf32(char[] text, int idx)
Arguments
TypeNameDescription
char``[]text
intidx
ConvertToUtf32 [3/3]

Source code

public static int ConvertToUtf32(string text, int idx)
Arguments
TypeNameDescription
stringtext
intidx
ConvertFromUtf32

Source code

public static string ConvertFromUtf32(int codePoint)
Arguments
TypeNameDescription
intcodePoint
ReadFileToString

Source code

public static string ReadFileToString(string path)
Arguments
TypeNameDescription
stringpath
ConvertToHex

Source code

public static string ConvertToHex(byte[] bytes)
Arguments
TypeNameDescription
byte``[]bytes
ComputeTabSpace [1/2]

Source code

public static float ComputeTabSpace(float lx, float rx, float tab)
Arguments
TypeNameDescription
floatlx
floatrx
floattab
ComputeTabSpace [2/2]

Source code

public static float ComputeTabSpace(float width, float tab)
Arguments
TypeNameDescription
floatwidth
floattab
Max

Source code

public static float Max(float[] array)
Arguments
TypeNameDescription
float``[]array
Min

Source code

public static float Min(float[] array)
Arguments
TypeNameDescription
float``[]array

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.