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
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Equals(UserStyleSheet?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(UserStyleSheet? other)
Parameters
other
UserStyleSheetAn object to compare with this object.
Returns
GetGType()
public static Type GetGType()
Returns
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
stringinjectedFrames
UserContentInjectedFrameslevel
UserStyleLevelallowList
string[]blockList
string[]
Returns
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
stringinjectedFrames
UserContentInjectedFrameslevel
UserStyleLevelworldName
stringallowList
string[]blockList
string[]
Returns
Ref()
[Version("2.6")]
public UserStyleSheet Ref()
Returns
Unref()
[Version("2.6")]
public void Unref()