-
Notifications
You must be signed in to change notification settings - Fork 365
/
IgnoredElement.cs
42 lines (39 loc) · 1.76 KB
/
IgnoredElement.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//===============================================================================================================
// System : Sandcastle Tools - Sandcastle Tools Core Class Library
// File : IgnoredElement.cs
// Author : Eric Woodruff (Eric@EWoodruff.us)
// Updated : 01/21/2022
// Note : Copyright 2022, Eric Woodruff, All rights reserved
//
// This file contains the class used to completely ignore an element and any child elements it contains so that
// they are not rendered in the topic at all.
//
// This code is published under the Microsoft Public License (Ms-PL). A copy of the license should be
// distributed with the code and can be found at the project website: https://GitHub.com/EWSoftware/SHFB. This
// notice, the author's name, and all copyright notices must remain intact in all applications, documentation,
// and source files.
//
// Date Who Comments
// ==============================================================================================================
// 01/14/2022 EFW Created the code
//===============================================================================================================
using System.Xml.Linq;
namespace Sandcastle.Core.PresentationStyle.Transformation.Elements
{
/// <summary>
/// This can be used to completely ignore an element and any child elements it contains so that they are not
/// rendered in the topic at all.
/// </summary>
public class IgnoredElement : Element
{
/// <inheritdoc />
public IgnoredElement(string name) : base(name)
{
}
/// <inheritdoc />
public override void Render(TopicTransformationCore transformation, XElement element)
{
// Do nothing so that they are omitted completely
}
}
}