共用方式為


PowerPoint) (FillFormat.GradientStops 屬性

會傳回與指定的填滿格式相關聯的 GradientStops 集合。 唯讀。

語法

運算式GradientStops

表達 會傳回 FillFormat 物件的運算式。

傳回值

GradientStops

註解

使用 GradientStops.Insert 方法,將漸層停駐點新增至指定物件的 GradientStops 集合。

範例

下列範例會示範如何在使用中簡報第一張投影片上第一個圖案的填滿格式的 GradientStops 集合的 50%位置新增漸層停駐點。 這個範例正常執行,圖形必須已套用漸層填滿。

Public Sub GradientStops_Example() 
 
    Dim pptShape As Shape 
    Dim pptFillFormat As FillFormat 
    Dim pptGradientStops As GradientStops 
     
    Set pptShape = ActivePresentation.Slides(1).Shapes(1) 
    Set pptFillFormat = pptShape.Fill 
    Set pptGradientStops = pptFillFormat.GradientStops 
     
    pptGradientStops.Insert RGB(255, 0, 255), 0.5 
     
End Sub

另請參閱

FillFormat 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應