• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Schema.XmlSchemaAnnotated类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Xml.Schema.XmlSchemaAnnotated的典型用法代码示例。如果您正苦于以下问题:C# XmlSchemaAnnotated类的具体用法?C# XmlSchemaAnnotated怎么用?C# XmlSchemaAnnotated使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



XmlSchemaAnnotated类属于System.Xml.Schema命名空间,在下文中一共展示了XmlSchemaAnnotated类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: DocUIList

        public DocUIList(XmlNode xmlNode, XmlSchemaAnnotated xsdNode, Panel contentpanel, Panel overlaypanel, DynamicForm parentForm, bool horizontal = true)
            : base(xmlNode, xsdNode, contentpanel, overlaypanel, parentForm)
        {
            _optlist = new List<ListItemComponent>();
            _parent = xmlNode;
            _listpanel = new StackPanel();
            _listpanel.Orientation = horizontal ? Orientation.Horizontal : Orientation.Vertical;
            XmlSchemaElement schemaEl = xsdNode as XmlSchemaElement;
            if (schemaEl != null)
            {
                XmlSchemaSequence seq = XmlSchemaUtilities.tryGetSequence(schemaEl.ElementSchemaType);
                if (seq != null && seq.Items.Count == 1 && seq.Items[0] is XmlSchemaElement)
                {
                    _el = seq.Items[0] as XmlSchemaElement;
                    //get all elements from current node
                    foreach (XmlNode node in xmlNode.ChildNodes)
                    {
                        ListItemComponent lio = new ListItemComponent(node, _el, _listpanel, overlaypanel, _optlist, parentForm);
                        _optlist.Add(lio);
                    }
                }

                Button add = new Button();
                add.Content = "Add item";
                add.Click += AddItem;
                _listpanel.Children.Add(add);
                contentpanel.Children.Add(_listpanel);
            }
        }
开发者ID:00Green27,项目名称:DocUI,代码行数:29,代码来源:DocUIList.cs


示例2: DocUITabbed

 public DocUITabbed(XmlNode xmlNode, XmlSchemaAnnotated xsdNode, Panel contentpanel, Panel overlaypanel, DynamicForm parentForm)
     : base(xmlNode, xsdNode, contentpanel, overlaypanel, parentForm)
 {
     this.Sideways = true;
     _tabControl = new TabControl();
     this.Control = _tabControl;
     _optlist = new List<AbstractDocUIComponent>();
     XmlSchemaElement schemaEl = xsdNode as XmlSchemaElement;
     if (schemaEl != null)
     {
         XmlSchemaSequence seq = XmlSchemaUtilities.tryGetSequence(schemaEl.ElementSchemaType);
         if (seq != null)
         {
             foreach (XmlSchemaElement el in seq.Items)
             {
                 TabItem ti = new TabItem();
                 ti.Header = XmlSchemaUtilities.tryGetDocumentation(el); ;
                 Grid newpanel = new Grid();
                 ColumnDefinition cdnew1 = new ColumnDefinition();
                 cdnew1.Width = new GridLength(1, GridUnitType.Auto);
                 ColumnDefinition cdnew2 = new ColumnDefinition();
                 newpanel.ColumnDefinitions.Add(cdnew1);
                 newpanel.ColumnDefinitions.Add(cdnew2);
                 Utilities.recursive(el, xmlNode.SelectSingleNode(el.Name), newpanel, overlaypanel, (comp) =>
                 {
                     _optlist.Add(comp);
                     comp.placeOption();
                 }, parentForm);
                 ti.Content = newpanel;
                 this._tabControl.Items.Add(ti);
             }
         }
     }
 }
开发者ID:00Green27,项目名称:DocUI,代码行数:34,代码来源:DocUITabbed.cs


示例3: DocUICombo

        /// <summary>
        /// Creates a new instance of the comboOption
        /// </summary>
        /// <param name="xmlNode">The xmlNode containing the data (selected value) of the comboOption</param>
        /// <param name="xsdNode">The corresponding xsdNode</param>
        /// <param name="panel">The panel on which the option should be placed</param>
        /// <param name="parentForm">The form of which this option is a part.</param>
        public DocUICombo(XmlNode xmlNode, XmlSchemaAnnotated xsdNode, Panel contentpanel, Panel overlaypanel, DynamicForm parentForm)
            : base(xmlNode, xsdNode, contentpanel, overlaypanel, parentForm)
        {
            XmlSchemaElement schemaEl = xsdNode as XmlSchemaElement;
            if (schemaEl != null)
            {
                cb = new ComboBox() { Margin = new Thickness(5) };
                cb.SelectionChanged += (s, e) => { hasPendingChanges(); };
                cb.VerticalContentAlignment = System.Windows.VerticalAlignment.Center;

                // get enumeration
                IEnumerable<XmlSchemaEnumerationFacet> enumFacets = XmlSchemaUtilities.tryGetEnumRestrictions(schemaEl.ElementSchemaType);

                if (enumFacets != null)
                {
                    foreach (var facet in enumFacets)
                    {
                        // fill the combobox
                        cb.Items.Add(facet.Value);
                    }
                    cb.SelectedIndex = 0;
                }
                else
                {
                    Log.Info("This combobox has no enumeration restriction. The Combobox will be empty.");
                }

                Control = cb;
                cb.Padding = new Thickness(10, 2, 10, 2);

                setup();
            }
        }
开发者ID:00Green27,项目名称:DocUI,代码行数:40,代码来源:DocUICombo.cs


示例4: DocUIMultiSelect

        /// <summary>
        /// Creates a new instance of MultiSelectOption
        /// </summary>
        /// <param name="xmlNode">The xmlNode that contains the data.</param>
        /// <param name="xsdNode">The corresponding xsdNode.</param>
        /// <param name="panel">The panel on which the option should be placed.</param>
        /// <param name="parentForm">The form of which this option is a part.</param>
        public DocUIMultiSelect(XmlNode xmlNode, XmlSchemaAnnotated xsdNode, Panel contentpanel, Panel overlaypanel, DynamicForm parentForm) :
            base(xmlNode, xsdNode, contentpanel, overlaypanel, parentForm)
        {
            XmlSchemaElement schemaEl = xsdNode as XmlSchemaElement;
            if (schemaEl != null)
            {
                XmlSchemaSequence seq = XmlSchemaUtilities.tryGetSequence(schemaEl.ElementSchemaType);
                if (seq != null && seq.Items.Count > 0)
                {
                    XmlSchemaElement el = seq.Items[0] as XmlSchemaElement;

                    IEnumerable<XmlSchemaEnumerationFacet> restrictions = XmlSchemaUtilities.tryGetEnumRestrictions(el.ElementSchemaType);
                    foreach (XmlSchemaEnumerationFacet e in restrictions)
                    {

                        AddOption(e.Value, FontWeights.Normal);
                    }
                }

                CheckBox all = AddOption("All", FontWeights.Bold);
                all.Checked += (s, e) => { SelectAll(); };
                all.Unchecked += (s, e) => { UnselectAll(); };

                _wrapPanel.Orientation = Orientation.Horizontal;
                Control = _wrapPanel;

                setup();
            }
        }
开发者ID:00Green27,项目名称:DocUI,代码行数:36,代码来源:DocUIMultiSelect.cs


示例5: DocUITime

        /// <summary>
        /// Creates a new instance of the TimeOption
        /// </summary>
        /// <param name="xmlNode">The xmlnode containing the data.</param>
        /// <param name="xsdNode">The corresponding xsdnode.</param>
        /// <param name="panel">The panel on which this option should be placed.</param>
        /// <param name="parentForm">The form of which this option is a part.</param>
        public DocUITime(XmlNode xmlNode, XmlSchemaAnnotated xsdNode, Panel contentpanel, Panel overlaypanel, DynamicForm parentForm) :
            base(xmlNode, xsdNode, contentpanel, overlaypanel, parentForm)
        {
            Control = new TimePicker() { Format = TimeFormat.Custom, FormatString = "HH:mm:ss" };
            (Control as TimePicker).ValueChanged += (s, e) => { hasPendingChanges(); };

            setup();
        }
开发者ID:00Green27,项目名称:DocUI,代码行数:15,代码来源:DocUITime.cs


示例6: DocUIBoolean

        public DocUIBoolean(XmlNode xmlNode, XmlSchemaAnnotated xsdNode, Panel contentpanel, Panel overlaypanel, DynamicForm parentForm)
            : base(xmlNode, xsdNode, contentpanel, overlaypanel, parentForm)
        {
            Control = new CheckBox();

            (Control as CheckBox).Click += (s, e) => { hasPendingChanges(); };

            setup();
        }
开发者ID:00Green27,项目名称:DocUI,代码行数:9,代码来源:DocUIBoolean.cs


示例7: DocUISubSection

        /// <summary>
        /// Creates a new instance of the SubSectionOption
        /// </summary>
        /// <param name="xmlNode">The xmlnode containing the data.</param>
        /// <param name="xsdNode">The corresponding xsdNode.</param>
        /// <param name="panel">The panel on which this option should be placed.</param>
        /// <param name="parentForm">The form of which this option is a part.</param>
        public DocUISubSection(XmlNode xmlNode, XmlSchemaAnnotated xsdNode, Panel contentpanel, Panel overlaypanel, DynamicForm parentForm) :
            base(xmlNode, xsdNode, contentpanel, overlaypanel, parentForm)
        {
            XmlSchemaElement schemaEl = xsdNode as XmlSchemaElement;
            if (schemaEl != null)
            {
                optionlist = new List<AbstractDocUIComponent>();
                box = new GroupBox();
                DockPanel panel = new DockPanel();

                Grid g = new Grid() { Margin = new Thickness(5, 0, 0, 0) };
                g.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(1, GridUnitType.Auto) });
                g.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(1, GridUnitType.Star) });

                XmlSchemaSequence seq = XmlSchemaUtilities.tryGetSequence(schemaEl.ElementSchemaType);
                if (seq != null)
                {
                    foreach (XmlSchemaElement el in seq.Items)
                        Utilities.recursive(el, xmlNode.SelectSingleNode(el.Name), g, overlaypanel, (comp) =>
                        {
                            comp.placeOption();
                            optionlist.Add(comp);
                        }, parentForm);
                }

                if (xmlNode.Attributes["checked"] != null)
                {
                    check = new CheckBox() { Margin = new Thickness(5, 5, 0, 5) };
                    check.Checked += check_changed;
                    check.Checked += (s, e) => { hasPendingChanges(); };
                    check.Unchecked += check_changed;
                    check.Unchecked += (s, e) => { hasPendingChanges(); };
                    panel.Children.Add(check);
                }

                // if there is no label, there should be no groupbox.
                if (Label.Text != "")
                {
                    panel.Children.Add(Label);
                    box.Header = panel;
                    box.Content = g;
                    Control = box;
                }
                else
                {
                    panel.Children.Add(g);
                    //Control = g;
                    Control = panel;
                }

                setup();
            }
        }
开发者ID:00Green27,项目名称:DocUI,代码行数:60,代码来源:DocUISubSection.cs


示例8: DocUIGUID

 public DocUIGUID(XmlNode xmlNode, XmlSchemaAnnotated xsdNode, Panel contentpanel, Panel overlaypanel, DynamicForm parentForm) :
     base(xmlNode, xsdNode, contentpanel, overlaypanel, parentForm)
 {
     Label l = new Label();
     this.Control = l;
     //check if node contains default value
     if (xmlNode.InnerText == "")
     {
         xmlNode.InnerText = Guid.NewGuid().ToString();
         //save the key
         //parentForm.saveFile(this, null);
     }
     l.Content = xmlNode.InnerText;
 }
开发者ID:00Green27,项目名称:DocUI,代码行数:14,代码来源:DocUIGUID.cs


示例9: DocUIString

        /// <summary>
        /// Creates a new incstance of the StringOption.
        /// </summary>
        /// <param name="xmlNode">The xmlnode containing the data.</param>
        /// <param name="xsdNode">The corresponding xsdNode.</param>
        /// <param name="panel">The panel on which this option should be placed.</param>
        /// <param name="parentForm">The form of which this option is a part.</param>
        /// <param name="metaname">Whether this option can be filled with metadata. And if so, whether it will get the name or the value of the metadata.</param>
        public DocUIString(XmlNode xmlNode, XmlSchemaAnnotated xsdNode, Panel contentpanel, Panel overlaypanel, DynamicForm parentForm) :
            base(xmlNode, xsdNode, contentpanel, overlaypanel, parentForm)
        {
            string regex = XmlSchemaUtilities.tryGetPatternRestriction(xsdNode);

            if (regex == null) { regex = ""; }

            string watermark = XmlSchemaUtilities.tryGetUnhandledAttribute(xsdNode, "watermark");
            string req = XmlSchemaUtilities.tryGetUnhandledAttribute(xsdNode, "required");
            bool required = req == "true" ? true : false;

            Control = new ExtendedTextBox("", watermark, regex, required, parentForm);
            (Control as ExtendedTextBox).TextBlock.TextChanged += (s, e) => { hasPendingChanges(); };
            Setup();
        }
开发者ID:00Green27,项目名称:DocUI,代码行数:23,代码来源:DocUIString.cs


示例10: DocUIDateTime

        /// <summary>
        /// Creates a new instance of the TimeOption
        /// </summary>
        /// <param name="xmlNode">The xmlnode containing the data.</param>
        /// <param name="xsdNode">The corresponding xsdnode.</param>
        /// <param name="contentpanel">The panel on which this option should be placed.</param>
        /// <param name="parentForm">The form of which this option is a part.</param>
        public DocUIDateTime(XmlNode xmlNode, XmlSchemaAnnotated xsdNode, Panel contentpanel, Panel overlaypanel, DynamicForm parentForm) :
            base(xmlNode, xsdNode, contentpanel, overlaypanel, parentForm)
        {
            //Control = new DatePicker(); //{ Form Format = TimeFormat.Custom, FormatString = "HH:mm:ss" };
            //(Control as DatePicker).ValueChanged += (s, e) => { hasPendingChanges(); };

            stack = new StackPanel() { Orientation = Orientation.Horizontal };
            Control = stack;
            DateControl = new DatePicker();
            DateControl.SelectedDateChanged += (s, e) => { hasPendingChanges(); };
            TimeControl = new TimePicker() { Format = TimeFormat.Custom, FormatString = "HH:mm:ss" };
            TimeControl.ValueChanged += (s, e) => { hasPendingChanges(); };

            setup();
        }
开发者ID:00Green27,项目名称:DocUI,代码行数:22,代码来源:DocUIDateTime.cs


示例11: Visit

        protected virtual void Visit(XmlSchemaAnnotated annotated)
        {
            XmlSchemaAnyAttribute anyAttribute;
            XmlSchemaAttribute attribute;
            XmlSchemaAttributeGroup attributeGroup;
            XmlSchemaAttributeGroupRef attributeGroupRef;
            XmlSchemaContent content;
            XmlSchemaContentModel contentModel;
            XmlSchemaFacet facet;
            XmlSchemaGroup group;
            XmlSchemaIdentityConstraint constraint;
            XmlSchemaNotation notation;
            XmlSchemaParticle particle;
            XmlSchemaSimpleTypeContent schemaSimpleTypeContent;
            XmlSchemaType type;
            XmlSchemaXPath xPath;

            if (Casting.TryCast(annotated, out anyAttribute))
                Visit(anyAttribute);
            else if (Casting.TryCast(annotated, out attribute))
                Visit(attribute);
            else if (Casting.TryCast(annotated, out attributeGroup))
                Visit(attributeGroup);
            else if (Casting.TryCast(annotated, out attributeGroupRef))
                Visit(attributeGroupRef);
            else if (Casting.TryCast(annotated, out content))
                Visit(content);
            else if (Casting.TryCast(annotated, out contentModel))
                Visit(contentModel);
            else if (Casting.TryCast(annotated, out facet))
                Visit(facet);
            else if (Casting.TryCast(annotated, out group))
                Visit(group);
            else if (Casting.TryCast(annotated, out constraint))
                Visit(constraint);
            else if (Casting.TryCast(annotated, out notation))
                Visit(notation);
            else if (Casting.TryCast(annotated, out particle))
                Visit(particle);
            else if (Casting.TryCast(annotated, out schemaSimpleTypeContent))
                Visit(schemaSimpleTypeContent);
            else if (Casting.TryCast(annotated, out type))
                Visit(type);
            else if (Casting.TryCast(annotated, out xPath))
                Visit(xPath);
            else
                throw ExceptionBuilder.UnexpectedSchemaObjectType(annotated);
        }
开发者ID:sergey-steinvil,项目名称:xsddoc,代码行数:48,代码来源:XmlSchemaSetVisitor.cs


示例12: DocUIPassword

        /// <summary>
        /// Creates a new instance of the passwordOption
        /// </summary>
        /// <param name="xmlNode">The xmlNode that contains the data.</param>
        /// <param name="xsdNode">The corresponding xsdNode.</param>
        /// <param name="panel">The panel on which this option should be placed.</param>
        /// <param name="parentForm">The form of which this option is a part.</param>
        public DocUIPassword(XmlNode xmlNode, XmlSchemaAnnotated xsdNode, Panel contentpanel, Panel overlaypanel, DynamicForm parentForm) :
            base(xmlNode, xsdNode, contentpanel, overlaypanel, parentForm)
        {
            PasswordBox pw = new PasswordBox() { PasswordChar = '*' };
            string req = XmlSchemaUtilities.tryGetUnhandledAttribute(xsdNode, "required");
            required = req == "true" ? true : false;

            pw.PasswordChanged += (s, e) =>
            {
                pw.Background = required && pw.Password == "" ? ExtendedTextBox.IncorrectColor : ExtendedTextBox.CorrectColor;
                hasPendingChanges();
            };
            Control = pw;

            setup();
        }
开发者ID:00Green27,项目名称:DocUI,代码行数:23,代码来源:DocUIPassword.cs


示例13: DocUIBigTextBox

        /// <summary>
        /// Creates a new instance of the BigTextOption
        /// </summary>
        /// <param name="xmlNode">The node containing the data for the textbox</param>
        /// <param name="xsdNode">The corresponding xsdNode</param>
        /// <param name="panel">the panel on which this option should be placed</param>
        /// <param name="parentForm">the form of which this option is a part</param>
        public DocUIBigTextBox(XmlNode xmlNode, XmlSchemaAnnotated xsdNode, Panel contentpanel, Panel overlaypanel, DynamicForm parentForm)
            : base(xmlNode, xsdNode, contentpanel, overlaypanel, parentForm)
        {
            ScrollViewer scroll = new ScrollViewer();

            string req = XmlSchemaUtilities.tryGetUnhandledAttribute(xsdNode, "required");
            bool required = req == "true" ? true : false;

            box = new ExtendedTextBox("", "", "", required, parentForm);
            box.TextBlock.AcceptsReturn = true;
            box.TextBlock.TextWrapping = TextWrapping.Wrap;
            box.Height = 200;

            scroll.Content = box;
            Control = scroll;

            setup();
        }
开发者ID:00Green27,项目名称:DocUI,代码行数:25,代码来源:DocUIBigTextBox.cs


示例14: DocUIInteger

        /// <summary>
        /// Creates a new instance of the IntegerOption
        /// </summary>
        /// <param name="xmlNode">The node that contains the data for the integerOption</param>
        /// <param name="xsdNode">The corresponding xsdNode.</param>
        /// <param name="panel">The panel in which this option should be placed.</param>
        /// <param name="parentForm">The form of which this option is a part.</param>
        public DocUIInteger(XmlNode xmlNode, XmlSchemaAnnotated xsdNode, Panel contentpanel, Panel overlaypanel, DynamicForm parentForm) :
            base(xmlNode, xsdNode, contentpanel, overlaypanel, parentForm)
        {
            int maxIncl = XmlSchemaUtilities.tryGetMaxIncl(xsdNode);
            int minIncl = XmlSchemaUtilities.tryGetMinIncl(xsdNode);
            _defaultValue = minIncl;

            Control = new DoubleUpDown()
            {
                ShowButtonSpinner = true,
                AllowSpin = true,
                MouseWheelActiveTrigger = MouseWheelActiveTrigger.MouseOver,
                Increment = 1,
                ClipValueToMinMax = true,
                Minimum = minIncl,
                Maximum = maxIncl
            };
            (Control as DoubleUpDown).ValueChanged += (s, e) => { hasPendingChanges(); };

            setup();
        }
开发者ID:00Green27,项目名称:DocUI,代码行数:28,代码来源:DocUIInteger.cs


示例15: DocUIRadioSelect

        /// <summary>
        /// Creates a new instance of the RadioSelector
        /// </summary>
        /// <param name="xmlNode">The xmlNode containing the data.</param>
        /// <param name="xsdNode">The corresponding xsdNode.</param>
        /// <param name="panel">The panel on which this option should be placed.</param>
        /// <param name="parentForm">The form of which this option is a part.</param>
        public DocUIRadioSelect(XmlNode xmlNode, XmlSchemaAnnotated xsdNode, Panel contentpanel, Panel overlaypanel, DynamicForm parentForm) :
            base(xmlNode, xsdNode, contentpanel, overlaypanel, parentForm)
        {
            XmlSchemaElement schemaEl = xsdNode as XmlSchemaElement;
            if (schemaEl != null)
            {
                g.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(1, GridUnitType.Auto) });
                g.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(1, GridUnitType.Auto) });
                g.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(1, GridUnitType.Star) });

                g.HorizontalAlignment = HorizontalAlignment.Stretch;

                Control = g;

                XmlSchemaSequence seq = XmlSchemaUtilities.tryGetSequence(schemaEl.ElementSchemaType);
                if (seq != null)
                    foreach (XmlSchemaElement el in seq.Items)
                        Utilities.recursive(el, xmlNode.SelectSingleNode(el.Name), contentpanel, overlaypanel, addOption, parentForm);
                else
                    Log.Info("this comboselector does not contain any options.");

                setup();
            }
        }
开发者ID:00Green27,项目名称:DocUI,代码行数:31,代码来源:DocUIRadioSelect.cs


示例16: CopyPosition

 private void CopyPosition(XmlSchemaAnnotated to, XmlSchemaAnnotated from, bool copyParent) {
     to.SourceUri = from.SourceUri;
     to.LinePosition = from.LinePosition;
     to.LineNumber = from.LineNumber;
     to.SetUnhandledAttributes(from.UnhandledAttributes);
     if (copyParent) {
        to.Parent = from.Parent;
     }
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:9,代码来源:SchemaSetCompiler.cs


示例17: CheckUnhandledAttributes

 private bool CheckUnhandledAttributes(XmlSchemaAnnotated annotated)
 {
     if (annotated.UnhandledAttributes != null)
     {
         foreach (XmlAttribute att in annotated.UnhandledAttributes)
         {
             if (att.LocalName == "root" && att.NamespaceURI == Constants.TypedXLinqNs)
             {
                 return true;
             }
         }
     }
     return false;
 }
开发者ID:dipdapdop,项目名称:linqtoxsd,代码行数:14,代码来源:XsdToTypesConverter.cs


示例18: ImportColumnMetaInfo

		// common process for element and attribute
		private void ImportColumnMetaInfo (XmlSchemaAnnotated obj, XmlQualifiedName name, DataColumn col)
		{
			int ordinal = -1;
			if (obj.UnhandledAttributes != null) {
				foreach (XmlAttribute attr in obj.UnhandledAttributes) {
					if (attr.NamespaceURI != XmlConstants.MsdataNamespace)
						continue;
					switch (attr.LocalName) {
					case XmlConstants.Caption:
						col.Caption = attr.Value;
						break;
					case XmlConstants.DataType:
						col.DataType = Type.GetType (attr.Value);
						break;
					case XmlConstants.AutoIncrement:
						col.AutoIncrement = bool.Parse (attr.Value);
						break;
					case XmlConstants.AutoIncrementSeed:
						col.AutoIncrementSeed = int.Parse (attr.Value);
						break;
					case XmlConstants.AutoIncrementStep:
						col.AutoIncrementStep = int.Parse (attr.Value);
						break;
					case XmlConstants.ReadOnly:
						col.ReadOnly = XmlConvert.ToBoolean (attr.Value);
						break;
					case XmlConstants.Ordinal:
						ordinal = int.Parse (attr.Value);
						break;
					}
				}
			}
		}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:34,代码来源:XmlSchemaDataImporter.cs


示例19: GetDocumentation

 public static XmlSchemaDocumentation GetDocumentation(XmlSchemaAnnotated a, string language)
 {
     XmlSchemaAnnotation ann = a.Annotation;
     if (ann == null) return null;
     foreach (XmlSchemaObject o in ann.Items) {
         // search for xs:documentation nodes
         XmlSchemaDocumentation doc = o as XmlSchemaDocumentation;
         if (doc != null)
         {
             if (string.IsNullOrEmpty(language) || doc.Language == language)
             {
                 return doc;
             }
         }
     }
     return null;
 }
开发者ID:dbremner,项目名称:xmlnotepad,代码行数:17,代码来源:SchemaCache.cs


示例20: GetAnnotation

 public static string GetAnnotation(XmlSchemaAnnotated a, AnnotationNode node, string language)
 {
     XmlSchemaAnnotation ann = a.Annotation;
     if (ann == null) return null;
     string filter = node.ToString().ToLowerInvariant();
     if (filter == "default") filter = "";
     string result = GetMarkup(ann, filter, language);
     if (!string.IsNullOrEmpty(result)) return result;
     return GetMarkup(ann, null, language);
 }
开发者ID:dbremner,项目名称:xmlnotepad,代码行数:10,代码来源:SchemaCache.cs



注:本文中的System.Xml.Schema.XmlSchemaAnnotated类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Schema.XmlSchemaAnnotation类代码示例发布时间:2022-05-26
下一篇:
C# Schema.XmlSchema类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap