Visible

ShadowFormat.Visible property

إرجاعحقيقي إذا كان التنسيق المطبق على هذه الحالة مرئيًا.

public bool Visible { get; }

ملاحظات

على عكسClear ، تعيينخطأ شنيعلا يؤدي “الظهور” إلى مسح التنسيق، بل يخفي تأثير الشكل فقط.

أمثلة

يوضح كيفية العمل مع تنسيق الظل للشكل.

Document doc = new Document(MyDir + "Shape stroke pattern border.docx");
Shape shape = (Shape)doc.GetChildNodes(NodeType.Shape, true)[0];

if (shape.ShadowFormat.Visible && shape.ShadowFormat.Type == ShadowType.Shadow2)
    shape.ShadowFormat.Type = ShadowType.Shadow7;

if (shape.ShadowFormat.Type == ShadowType.ShadowMixed)
    shape.ShadowFormat.Clear();

أنظر أيضا