StyleItem

StyleItem bir stil grubu ya da stildir; stile özgü özelliklere DynProperties üzerinden erişilir. Gruplar iç içe yerleştirilemez.

StyleItem, bir stil grubu ya da bir stil olabilir. Bir stil grubu sınırsız sayıda stil içerebilir, ancak bir grubun başka bir grubun içine yerleştirilmesi desteklenmez. Stil örneğin bir dolgu stili, metin stili vb. olabilir; bunlar genel olarak yönetilebilir ve dolgu rengi gibi stile özgü özelliklere DynProperties üzerinden erişilebilir.

OrtamKullanılabilirlik
Engineering StudioSalt okunur
Service EngineKullanılmaz
VBAKullanılabilir
VSTAKullanılabilir
VBA
‘ Prerequisites: A stylegroup with substyles in the active project
Sub TestStylesValuesSet()
    Set Manager = MyWorkspace.ActiveDocument.StyleManager
    Dim Group0 As StyleItem
    Set Group0 = Manager.Item(0)
    Dim Props() As String
    Props = Group0.DynPropertiesEnum("")
    For n = 0 To Group0.Count - 1
        Dim Item As StyleItem
        Set Item = Group0.Item(n)
        Props = Item.DynPropertiesEnum("")
        Debug.Print ">************ " & Item.DynProperties("StyleItemName") & " *************"
        For p = LBound(Props) To UBound(Props)
            Debug.Print Props(p)
        Next p
        Debug.Print "<************ " & Item.Name & " *************" & vbCrLf
        Item.DynProperties("StyleItemDescription") = "visited by me"
        Item.Name = "NewName"
    Next n
End Sub
‘ prerequisite:
‘     first screen has two elements
‘     first element has a style group set
Sub StyleDynPropItem()
    Dim pic As DynPicture
Set pic = MyWorkspace.ActiveDocument.DynPictures.Item(0)
    Dim elem(1) As Element
    Set elem(0) = pic.Elements.Item(0)
Set elem(1) = pic.Elements.Item(1)
    Dim Style As StyleItem
Set Style = elem(0).DynProperties("StyleGroup")
    elem(1).DynProperties("StyleGroup") = Style ‘ sets the style group
elem(0).DynProperties("StyleGroup") = Nothing ‘ sets the prop to "no style linked"
pic.Save
End Sub

Bu bölümdeki konular

Bu sayfa, COPA-DATA zenon 16 çevrimiçi yardımının Türkçe çevirisidir. Menü ve ayar adları, programdaki gibi bulmanız için İngilizce bırakılmıştır.