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
- Matrix3DStack.cs
- InputMethodStateTypeInfo.cs
- ErrorFormatterPage.cs
- Attributes.cs
- BitmapEffectGeneralTransform.cs
- BindingRestrictions.cs
- EventData.cs
- SqlUtils.cs
- RemoveStoryboard.cs
- SymbolPair.cs
- _TLSstream.cs
- Viewport3DVisual.cs
- RepeatButtonAutomationPeer.cs
- DbProviderSpecificTypePropertyAttribute.cs
- PLINQETWProvider.cs
- Journal.cs
- PseudoWebRequest.cs
- SpotLight.cs
- EnumerableValidator.cs
- XmlTextReaderImpl.cs
- StringArrayConverter.cs
- ZoomPercentageConverter.cs
- AncillaryOps.cs
- TypeElement.cs
- SingleAnimation.cs
- LayoutSettings.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- CellPartitioner.cs
- CornerRadiusConverter.cs
- TextControl.cs
- ReachDocumentReferenceCollectionSerializer.cs
- StandardCommands.cs
- Vector3DConverter.cs
- ImportedNamespaceContextItem.cs
- OptimizedTemplateContentHelper.cs
- CurrentTimeZone.cs
- GeometryConverter.cs
- WebControl.cs
- CodeAccessSecurityEngine.cs
- IIS7UserPrincipal.cs
- TreeNodeMouseHoverEvent.cs
- GcHandle.cs
- FilterableAttribute.cs
- Int64Animation.cs
- EFTableProvider.cs
- GroupDescription.cs
- Columns.cs
- XmlDataImplementation.cs
- DataGridColumnStyleMappingNameEditor.cs
- RectangleHotSpot.cs
- XPathNodeList.cs
- SrgsNameValueTag.cs
- ExpressionParser.cs
- StringValidatorAttribute.cs
- XPathDocumentIterator.cs
- DeviceSpecificDesigner.cs
- MsmqElementBase.cs
- SafeHandle.cs
- CounterCreationDataConverter.cs
- AliasGenerator.cs
- Configuration.cs
- TraceContextRecord.cs
- CommittableTransaction.cs
- ObjectViewFactory.cs
- ToolStripOverflow.cs
- SharedHttpsTransportManager.cs
- Zone.cs
- EdmValidator.cs
- ObjectAnimationUsingKeyFrames.cs
- MaskedTextBoxDesigner.cs
- Int64KeyFrameCollection.cs
- isolationinterop.cs
- RequestStatusBarUpdateEventArgs.cs
- XmlChoiceIdentifierAttribute.cs
- Setter.cs
- DrawToolTipEventArgs.cs
- MessageBox.cs
- TableStyle.cs
- StandardToolWindows.cs
- Operator.cs
- Cloud.cs
- TransactionTraceIdentifier.cs
- AnnouncementDispatcherAsyncResult.cs
- RoutedEventValueSerializer.cs
- TypeValidationEventArgs.cs
- DataBindingCollection.cs
- _ShellExpression.cs
- DurationConverter.cs
- MaskInputRejectedEventArgs.cs
- CngAlgorithmGroup.cs
- WebPartConnection.cs
- CalendarDataBindingHandler.cs
- SelectionService.cs
- SEHException.cs
- PropertyReferenceSerializer.cs
- XPathDocumentIterator.cs
- FixedMaxHeap.cs
- RoleManagerSection.cs
- Pkcs7Recipient.cs
- DataGridViewTextBoxColumn.cs