Table of Contents

Class UserStyleSheet

Namespace
WebKit
Assembly
WebKit-6.0.dll
public sealed class UserStyleSheet : BoxedRecord, IEquatable<UserStyleSheet>
Inheritance
UserStyleSheet
Implements
Inherited Members

Constructors

UserStyleSheet(UserStyleSheetOwnedHandle)

public UserStyleSheet(UserStyleSheetOwnedHandle handle)

Parameters

handle UserStyleSheetOwnedHandle

Properties

Handle

public UserStyleSheetOwnedHandle Handle { get; }

Property Value

UserStyleSheetOwnedHandle

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(UserStyleSheet?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(UserStyleSheet? other)

Parameters

other UserStyleSheet

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

New(string, UserContentInjectedFrames, UserStyleLevel, string[]?, string[]?)

[Version("2.6")]
public static UserStyleSheet New(string source, UserContentInjectedFrames injectedFrames, UserStyleLevel level, string[]? allowList, string[]? blockList)

Parameters

source string
injectedFrames UserContentInjectedFrames
level UserStyleLevel
allowList string[]
blockList string[]

Returns

UserStyleSheet

NewForWorld(string, UserContentInjectedFrames, UserStyleLevel, string, string[]?, string[]?)

[Version("2.22")]
public static UserStyleSheet NewForWorld(string source, UserContentInjectedFrames injectedFrames, UserStyleLevel level, string worldName, string[]? allowList, string[]? blockList)

Parameters

source string
injectedFrames UserContentInjectedFrames
level UserStyleLevel
worldName string
allowList string[]
blockList string[]

Returns

UserStyleSheet

Ref()

[Version("2.6")]
public UserStyleSheet Ref()

Returns

UserStyleSheet

Unref()

[Version("2.6")]
public void Unref()