Restrict editing Word Style or Context Menu popup RRS feed

  • Question

  • Is it possible to lock Word Styles and block the user from editing them or can the context menu be disabled?

    I have tried:

    foreach (W.Style st in doc.Styles)

    if (st.NameLocal == "Beispiel" || st.NameLocal == "Standard")

    st.Locked = true;           


    object noReset = false;           

    object password = "";           

    object useIrm = false;           

    object enforceStyleLock = false;           


    ref noReset, ref password, ref useIrm, ref enforceStyleLock);

    But this option loks the whole TabHome but I only want to lock the styles in this Tab. Users should only be able the add them by clicking. Every other function e.g. "Modify Styles" should be disabled.

    I have searched and tried different controls but almost non of the style controls gets fired.

    • Edited by dermaga Friday, July 26, 2019 8:44 AM
    Thursday, July 25, 2019 4:10 PM

All replies