Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / PathSegmentCollection.cs / 1 / PathSegmentCollection.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // //--------------------------------------------------------------------------- using MS.Internal; using MS.Internal.PresentationCore; using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; using System.ComponentModel.Design.Serialization; using System.Text; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using System.Windows.Markup; namespace System.Windows.Media { ////// The class definition for PathSegmentCollection /// [Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)] public sealed partial class PathSegmentCollection : Animatable, IList, IList{ /// /// Can serialze "this" to a string. /// This is true iff every segment is stroked. /// internal bool CanSerializeToString() { bool canSerialize = true; for (int i=0; i<_collection.Count; i++) { if (!_collection[i].IsStroked) { canSerialize = false; break; } } return canSerialize; } ////// Creates a string representation of this object based on the format string /// and IFormatProvider passed in. /// If the provider is null, the CurrentCulture is used. /// See the documentation for IFormattable for more information. /// ////// A string representation of this object. /// internal string ConvertToString(string format, IFormatProvider provider) { if (_collection.Count == 0) { return String.Empty; } StringBuilder str = new StringBuilder(); char separator = MS.Internal.TokenizerHelper.GetNumericListSeparator(provider); for (int i=0; i<_collection.Count; i++) { str.Append(_collection[i].ConvertToString(format, provider)); } return str.ToString(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypeConverterValueSerializer.cs
- LabelLiteral.cs
- Menu.cs
- Type.cs
- NonPrimarySelectionGlyph.cs
- TextPointer.cs
- KeyGestureValueSerializer.cs
- ImagingCache.cs
- PropertyPathConverter.cs
- SQLInt32Storage.cs
- HuffModule.cs
- SimpleTypeResolver.cs
- SqlExpressionNullability.cs
- PointUtil.cs
- NameSpaceEvent.cs
- PublisherMembershipCondition.cs
- WebSysDefaultValueAttribute.cs
- SoapCodeExporter.cs
- TextBox.cs
- XmlBindingWorker.cs
- DesigntimeLicenseContext.cs
- ColumnMap.cs
- FontWeightConverter.cs
- ConfigXmlCDataSection.cs
- PublisherMembershipCondition.cs
- SoapElementAttribute.cs
- ObsoleteAttribute.cs
- ToolStripDropDownClosingEventArgs.cs
- SessionPageStateSection.cs
- HtmlTernaryTree.cs
- ResourceDescriptionAttribute.cs
- DataSourceProvider.cs
- HasActivatableWorkflowEvent.cs
- DetailsViewRow.cs
- DoubleAnimationBase.cs
- DbConnectionOptions.cs
- StringUtil.cs
- FontDriver.cs
- RowVisual.cs
- StagingAreaInputItem.cs
- XmlNotation.cs
- PerfCounterSection.cs
- DropShadowBitmapEffect.cs
- xmlglyphRunInfo.cs
- InstanceDataCollectionCollection.cs
- ActivityExecutionFilter.cs
- CustomValidator.cs
- ImageSourceValueSerializer.cs
- TemplateControlParser.cs
- XappLauncher.cs
- Application.cs
- SQLInt64.cs
- ToolStripRenderer.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- ElementHost.cs
- CmsInterop.cs
- CompiledQuery.cs
- dsa.cs
- DomainConstraint.cs
- HttpListenerPrefixCollection.cs
- SqlXmlStorage.cs
- ApplicationBuildProvider.cs
- DateTimePicker.cs
- TriState.cs
- LambdaCompiler.Generated.cs
- BindingSource.cs
- TaiwanCalendar.cs
- PlainXmlSerializer.cs
- InArgumentConverter.cs
- HighContrastHelper.cs
- Compiler.cs
- DebugHandleTracker.cs
- WebResourceUtil.cs
- Predicate.cs
- SelectionHighlightInfo.cs
- StackOverflowException.cs
- PluralizationService.cs
- DataSourceControlBuilder.cs
- MouseButtonEventArgs.cs
- mediapermission.cs
- DockPanel.cs
- MetadataWorkspace.cs
- CodeDOMUtility.cs
- FileChangeNotifier.cs
- XPathNodeList.cs
- PropertyTabChangedEvent.cs
- DataSourceSelectArguments.cs
- PointHitTestResult.cs
- SqlSupersetValidator.cs
- HexParser.cs
- UIPermission.cs
- EventDrivenDesigner.cs
- NetworkAddressChange.cs
- ThreadStartException.cs
- EntityDataSourceView.cs
- CodeNamespaceImport.cs
- Vector3DKeyFrameCollection.cs
- DesignTimeData.cs
- DeclaredTypeElement.cs
- TranslateTransform.cs