Class UserStyleSheet
- Namespace
- WebKit
- Assembly
- WebKit-6.0.dll
public sealed class UserStyleSheet : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<UserStyleSheet>, IDisposable
- Inheritance
-
UserStyleSheet
- Implements
- Inherited Members
Constructors
UserStyleSheet(UserStyleSheetOwnedHandle)
public UserStyleSheet(UserStyleSheetOwnedHandle handle)
Parameters
handleUserStyleSheetOwnedHandle
Properties
Handle
public UserStyleSheetOwnedHandle Handle { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe 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
otherUserStyleSheetAn 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
sourcestringinjectedFramesUserContentInjectedFrameslevelUserStyleLevelallowListstring[]blockListstring[]
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
sourcestringinjectedFramesUserContentInjectedFrameslevelUserStyleLevelworldNamestringallowListstring[]blockListstring[]
Returns
Ref()
[Version("2.6")]
public UserStyleSheet Ref()
Returns
Unref()
[Version("2.6")]
public void Unref()