AnimationSettings.DimColor 屬性 (PowerPoint)

會傳回或設定 ColorFormat 物件,代表指定圖案在建置完成後的色彩。 唯讀。

語法

expressionDimColor

表達 代表 AnimationSettings 物件的 變數。

傳回值

ColorFormat

註解

如果您沒有收到預期的效果,請檢查其他組建設定。 除非 AnimationSettings 物件的 TextLevelEffect 屬性設為 ppAnimateLevelNone 以外的某個項目、 AfterEffect 屬性設為 ppAfterEffectDim 、 和 動畫 屬性設為 True 就無法看到 DimColor 屬性的效果。 此外,如果指定的圖案是唯一的項目或建置投影片上的最後一個項目,則不會變暗圖形。 若要變更的投影片上的圖案組建順序,使用 AnimationOrder 屬性。

範例

本範例會將含有標題與三個項目之清單的投影片新增至作用中的簡報、將標題與清單設定為在建置後變暗,並且設定變暗後的色彩。

With ActivePresentation.Slides.Add(2, ppLayoutText).Shapes
    With .Item(1)
        .TextFrame.TextRange.Text = "Sample title"
        With .AnimationSettings
            .TextLevelEffect = ppAnimateByAllLevels
            .AfterEffect = ppAfterEffectDim
            .DimColor.SchemeColor = ppShadow
            .Animate = True
        End With
    End With

    With .Item(2)
        .TextFrame.TextRange.Text = "Item one" _
            & Chr(13) & "Item two"
        With .AnimationSettings
            .TextLevelEffect = ppAnimateByFirstLevel
            .AfterEffect = ppAfterEffectDim
            .DimColor.RGB = RGB(100, 150, 130)
            .Animate = True
        End With
    End With
End With

另請參閱

AnimationSettings 物件

支援和意見反應

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