語言

CFString 類別

定義

字串類別,僅用於 C 語言的 Cocoa API。

public class CFString : CoreFoundation.NativeObject
type CFString = class
    inherit NativeObject
繼承
衍生

備註

使用此類別來建立必須傳遞給低階 CoreGraphics API 方法的字串。

建構函式

名稱 Description
CFString()

字串類別,僅用於 C 語言的 Cocoa API。

CFString(String)

從 C# 字串產生 a CFString 。

屬性

名稱 Description
Handle

字串類別,僅用於 C 語言的 Cocoa API。

(繼承來源 DisposableObject)
Item[IntPtr]

字串類別,僅用於 C 語言的 Cocoa API。

Length

弦長。

Owns

字串類別,僅用於 C 語言的 Cocoa API。

(繼承來源 DisposableObject)

方法

名稱 Description
ClearHandle()

字串類別,僅用於 C 語言的 Cocoa API。

(繼承來源 DisposableObject)
CreateNative(String, Boolean)

從 C# 字串建立 a CFString ,並回傳指向它的指標。

CreateNative(String, Int32, Int32, Boolean)

從 C# 字串建立 a CFString ,並回傳指向它的指標。

CreateNative(String)

從 C# 字串建立 a CFString ,並回傳指向它的指標。

Dispose()

釋放此物件所使用的所有資源。

(繼承來源 DisposableObject)
Dispose(Boolean)

釋放此物件所使用的資源。

(繼承來源 NativeObject)
Equals(Object)

字串類別,僅用於 C 語言的 Cocoa API。

(繼承來源 DisposableObject)
FromHandle(NativeHandle, Boolean)

工具方法,從指向 Objective-C NSString 或 CFString 物件的指標回傳字串。

FromHandle(NativeHandle)

工具方法,從指向 Objective-C NSString 或 CFString 物件的指標回傳字串。

GetCheckedHandle()

字串類別,僅用於 C 語言的 Cocoa API。

(繼承來源 DisposableObject)
GetHashCode()

字串類別,僅用於 C 語言的 Cocoa API。

(繼承來源 DisposableObject)
GetTypeID()

CoreFoundation.CFString 型別的型別識別碼。

InitializeHandle(NativeHandle)

字串類別,僅用於 C 語言的 Cocoa API。

(繼承來源 DisposableObject)
Release()

字串類別,僅用於 C 語言的 Cocoa API。

(繼承來源 NativeObject)
ReleaseNative(NativeHandle)

釋放一個原生的 Objective-C 字串。

Retain()

字串類別,僅用於 C 語言的 Cocoa API。

(繼承來源 NativeObject)
ToString()

字串類別,僅用於 C 語言的 Cocoa API。

運算子

名稱 Description
Implicit(CFString to String)

字串類別,僅用於 C 語言的 Cocoa API。

Implicit(String to CFString)

字串類別,僅用於 C 語言的 Cocoa API。

擴充方法

名稱 Description
GetHandle(INativeObject)

字串類別,僅用於 C 語言的 Cocoa API。

GetNonNullHandle(INativeObject, String)

字串類別,僅用於 C 語言的 Cocoa API。

適用於