/// <summary>
 /// Constructor
 /// </summary>
 /// <param name="exportElement">ExportElement</param>
 public ExportElementOptions(ExportElement exportElement)
 {
     ExportElementType          = exportElement;
     ExportElementBackground    = defaultBackground;
     ExportElementForeground    = defaultForeground;
     ExportElementFontFamily    = defaultFontFamily;
     ExportElementFontSize      = defaultFontSize;
     ExportElementFontWeight    = defaultFontWeight;
     ExportElementTextAlignment = defaultTextAlignment;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="exportElement">ExportElement</param>
 /// <param name="Type"><value = "True">Highlighted elements</value><value = "False">Default elements</param>
 public ExportElementOptions(ExportElement exportElement, bool Type = false)
 {
     ExportElementType = exportElement;
     if (Type)
     {
         ExportElementBackground    = highlightedBackground;
         ExportElementForeground    = highlightedForeground;
         ExportElementFontFamily    = highlightedFontFamily;
         ExportElementFontSize      = highlightedFontSize;
         ExportElementFontWeight    = highlightedFontWeight;
         ExportElementTextAlignment = highlightedTextAlignment;
     }
     else
     {
         ExportElementBackground    = defaultBackground;
         ExportElementForeground    = defaultForeground;
         ExportElementFontFamily    = defaultFontFamily;
         ExportElementFontSize      = defaultFontSize;
         ExportElementFontWeight    = defaultFontWeight;
         ExportElementTextAlignment = defaultTextAlignment;
     }
 }
        private void ProcessExportElement(IExportRegistrationBlock registrationBlock, ExportElement exportElement)
        {
            Type exportType = ConvertStringToType(exportElement.Type);

            if (exportType != null)
            {
                IFluentExportStrategyConfiguration config = registrationBlock.Export(exportType);

                if (exportElement.ExternallyOwned)
                {
                    config = config.ExternallyOwned();
                }

                config.InEnvironment(exportElement.Environment);

                if (exportElement.AutoWireProperties)
                {
                    config.AutoWireProperties();
                }

                foreach (AsElement asElement in exportElement)
                {
                    if (asElement.Type != null)
                    {
                        Type asType = ConvertStringToType(asElement.Type);

                        if (asType != null)
                        {
                            config = config.As(asType);
                        }
                    }
                    else if (asElement.Name != null)
                    {
                        config.AsName(asElement.Name);
                    }
                }

                ILifestyle lifeStyle = ConvertStringToLifestyle(exportElement.LifeStyle);

                if (lifeStyle != null)
                {
                    config.UsingLifestyle(lifeStyle);
                }
            }
        }