LinearGradient 接口

定义

对象 LinearGradient 沿特定角度以线性方式在一系列颜色中切换。

public interface class LinearGradient
[System.Runtime.InteropServices.Guid("000244AF-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface LinearGradient
Public Interface LinearGradient
属性

注解

注意:使用 LinearGradient 对象时要考虑的一些事项

  • 尝试访问 Gradient 没有现有渐变填充的对象的属性 Interior 将导致运行时错误。 在访问 Gradient 属性之前, Pattern 请注意 属性。
  • 如果 Pattern 从渐变类型更改为非渐变类型,则 LinearGradient 对象将使用默认值填充。

属性

Application

在没有对象限定符的情况下使用时,此属性返回一个 _Application 表示 Microsoft Office Excel 应用程序的 对象。 如果与对象识别符一起使用,则此属性返回代表指定对象的创建者的 Application 对象。 此为只读属性。

ColorStops

返回 ColorStopsLinearGradient 对象的 。 只读

Creator

返回一个 32 位整数,该值等效于 中的 XlCreator 一个值,该值指示创建此对象的应用程序。 此为只读属性。

Degree

选定区域中线性渐变填充的角度。 读/写

Parent

返回指定对象的父对象。 只读

适用于