Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / PathSegmentCollection.cs / 1305600 / 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(); 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
- BamlLocalizerErrorNotifyEventArgs.cs
- SizeFConverter.cs
- Tile.cs
- SoapHttpTransportImporter.cs
- DataGridColumn.cs
- TextPattern.cs
- DynamicMetaObject.cs
- BuildResultCache.cs
- TextLineBreak.cs
- DataServiceQuery.cs
- DocumentDesigner.cs
- WeakHashtable.cs
- SpeechRecognizer.cs
- OdbcEnvironmentHandle.cs
- X509Certificate.cs
- LocalIdKeyIdentifierClause.cs
- GcSettings.cs
- HtmlEncodedRawTextWriter.cs
- DetailsViewInsertedEventArgs.cs
- LogRestartAreaEnumerator.cs
- LayoutDump.cs
- CryptoHelper.cs
- Transform3DGroup.cs
- FileAuthorizationModule.cs
- DataStreamFromComStream.cs
- Bezier.cs
- Panel.cs
- PerformanceCounterPermission.cs
- DbParameterCollectionHelper.cs
- RichTextBoxConstants.cs
- PlatformCulture.cs
- MemberMaps.cs
- HtmlValidationSummaryAdapter.cs
- ImmutablePropertyDescriptorGridEntry.cs
- WebServiceAttribute.cs
- newitemfactory.cs
- Composition.cs
- SimpleApplicationHost.cs
- InvokeGenerator.cs
- RequestCacheManager.cs
- configsystem.cs
- SafeNativeMethods.cs
- ClientBuildManager.cs
- ProfileGroupSettings.cs
- ByteConverter.cs
- RoutedEventArgs.cs
- Pointer.cs
- RightsManagementPermission.cs
- WebPartsPersonalization.cs
- Listbox.cs
- CurrentTimeZone.cs
- WebPartCollection.cs
- ArraySet.cs
- SimpleHandlerBuildProvider.cs
- FixedSOMLineRanges.cs
- AutomationAttributeInfo.cs
- DbConnectionOptions.cs
- WindowInteractionStateTracker.cs
- XmlStringTable.cs
- SmiSettersStream.cs
- ParallelTimeline.cs
- CookielessHelper.cs
- ScaleTransform3D.cs
- CompilerCollection.cs
- KeyEventArgs.cs
- ResourceBinder.cs
- RichTextBox.cs
- LineBreak.cs
- ErrorFormatter.cs
- ImplicitInputBrush.cs
- CursorInteropHelper.cs
- XmlElement.cs
- BaseValidator.cs
- DropShadowEffect.cs
- PatternMatcher.cs
- DefaultProfileManager.cs
- base64Transforms.cs
- UserControl.cs
- FileSystemInfo.cs
- EventManager.cs
- BaseValidatorDesigner.cs
- WebPartConnectionsCloseVerb.cs
- VarInfo.cs
- UrlPropertyAttribute.cs
- DataSetMappper.cs
- InheritedPropertyDescriptor.cs
- Style.cs
- SpellerHighlightLayer.cs
- SortKey.cs
- ImageSourceValueSerializer.cs
- CreateRefExpr.cs
- ServiceChannelFactory.cs
- _Events.cs
- FocusWithinProperty.cs
- DataGridTextBoxColumn.cs
- UnionCodeGroup.cs
- SystemTcpStatistics.cs
- PerformanceCounterManager.cs
- Package.cs
- MdiWindowListStrip.cs