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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Point3DCollectionConverter.cs
- QilValidationVisitor.cs
- ProxyWebPartConnectionCollection.cs
- AutomationEvent.cs
- SocketPermission.cs
- RegexStringValidatorAttribute.cs
- FacetValueContainer.cs
- RadioButtonList.cs
- ProjectionCamera.cs
- Point3DCollection.cs
- SessionStateModule.cs
- Trace.cs
- HasCopySemanticsAttribute.cs
- HtmlGenericControl.cs
- BrowserCapabilitiesCodeGenerator.cs
- DataGridCellAutomationPeer.cs
- Emitter.cs
- FixedPosition.cs
- GcSettings.cs
- ExceptionUtil.cs
- TypeDependencyAttribute.cs
- Rectangle.cs
- MustUnderstandBehavior.cs
- AnimationStorage.cs
- GeneralTransform2DTo3D.cs
- RegistrationServices.cs
- SymbolTable.cs
- Sql8ExpressionRewriter.cs
- CompositeCollection.cs
- ManagementClass.cs
- OleStrCAMarshaler.cs
- TableCellCollection.cs
- MetadataFile.cs
- DataObject.cs
- TypeConverterAttribute.cs
- MarkupObject.cs
- TextSegment.cs
- RIPEMD160Managed.cs
- UidManager.cs
- FieldBuilder.cs
- ItemList.cs
- AppSettingsExpressionBuilder.cs
- EdmError.cs
- handlecollector.cs
- StylusSystemGestureEventArgs.cs
- ComponentEvent.cs
- GeneratedCodeAttribute.cs
- SamlAuthorizationDecisionClaimResource.cs
- Merger.cs
- safelinkcollection.cs
- GridView.cs
- SimpleBitVector32.cs
- RtfControls.cs
- SqlMetaData.cs
- GAC.cs
- DataGridViewDataConnection.cs
- PatternMatcher.cs
- Font.cs
- IItemProperties.cs
- RectKeyFrameCollection.cs
- QilLiteral.cs
- TypedTableGenerator.cs
- TemplateControlBuildProvider.cs
- ActivityExecutionFilter.cs
- StringComparer.cs
- Int16Converter.cs
- Rights.cs
- ItemCollection.cs
- KerberosReceiverSecurityToken.cs
- WindowsSysHeader.cs
- InlinedAggregationOperator.cs
- HttpListenerPrefixCollection.cs
- FacetEnabledSchemaElement.cs
- DataGridPageChangedEventArgs.cs
- ParseElement.cs
- HelpKeywordAttribute.cs
- SqlBulkCopyColumnMapping.cs
- SelectionItemProviderWrapper.cs
- SignedPkcs7.cs
- MemoryMappedFileSecurity.cs
- VirtualDirectoryMappingCollection.cs
- EntityKeyElement.cs
- GcHandle.cs
- DataSourceXmlElementAttribute.cs
- ASCIIEncoding.cs
- ListViewDeleteEventArgs.cs
- XmlJsonReader.cs
- XXXOnTypeBuilderInstantiation.cs
- PointCollectionConverter.cs
- TimeEnumHelper.cs
- DesignSurfaceServiceContainer.cs
- CompositeFontFamily.cs
- SinglePageViewer.cs
- StateBag.cs
- EntitySetRetriever.cs
- _NegotiateClient.cs
- CopyNodeSetAction.cs
- HostingMessageProperty.cs
- UserMapPath.cs
- Int16Storage.cs