Brush 类

定义

定义用于填充图形形状(如矩形、椭圆、饼形、多边形和封闭路径)的内部的对象。Defines objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths.

public ref class Brush abstract : MarshalByRefObject, ICloneable, IDisposable
public abstract class Brush : MarshalByRefObject, ICloneable, IDisposable
type Brush = class
    inherit MarshalByRefObject
    interface ICloneable
    interface IDisposable
Public MustInherit Class Brush
Inherits MarshalByRefObject
Implements ICloneable, IDisposable
继承
派生
实现

注解

这是一个抽象基类,不能进行实例化。This is an abstract base class and cannot be instantiated. 若要创建画笔对象,请使用派生自Brush的类, SolidBrush例如TextureBrush、和LinearGradientBrushTo create a brush object, use classes derived from Brush, such as SolidBrush, TextureBrush, and LinearGradientBrush.

实施者说明

Brush类继承时,必须Clone()重写方法。When you inherit from the Brush class, you must override the Clone() method.

构造函数

Brush()

初始化 Brush 类的新实例。Initializes a new instance of the Brush class.

方法

Clone()

当在派生类中重写时,创建此 Brush 的一个精确副本。When overridden in a derived class, creates an exact copy of this Brush.

CreateObjRef(Type)

创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(继承自 MarshalByRefObject)
Dispose()

释放由此 Brush 对象使用的所有资源。Releases all resources used by this Brush object.

Dispose(Boolean)

释放由 Brush 占用的非托管资源,还可以另外再释放托管资源。Releases the unmanaged resources used by the Brush and optionally releases the managed resources.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
Finalize()

在垃圾回收将某一对象回收前允许该对象尝试释放资源并执行其他清理操作。Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetLifetimeService()

检索控制此实例的生存期策略的当前生存期服务对象。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(继承自 MarshalByRefObject)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
InitializeLifetimeService()

获取生存期服务对象来控制此实例的生存期策略。Obtains a lifetime service object to control the lifetime policy for this instance.

(继承自 MarshalByRefObject)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
MemberwiseClone(Boolean)

创建当前 MarshalByRefObject 对象的浅表副本。Creates a shallow copy of the current MarshalByRefObject object.

(继承自 MarshalByRefObject)
SetNativeBrush(IntPtr)

在派生类中,设置对 GDI+GDI+ 画笔对象的引用。In a derived class, sets a reference to a GDI+GDI+ brush object.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于