Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- _HeaderInfo.cs
- EventLogPropertySelector.cs
- WSSecureConversationFeb2005.cs
- ScriptReference.cs
- ValidatorUtils.cs
- TickBar.cs
- SqlServer2KCompatibilityAnnotation.cs
- CompositeFontFamily.cs
- SchemaCollectionCompiler.cs
- JsonWriter.cs
- SingleTagSectionHandler.cs
- TemplateKey.cs
- XPathNodeHelper.cs
- GradientBrush.cs
- ConnectionPoint.cs
- FormViewUpdateEventArgs.cs
- HttpException.cs
- ActiveXMessageFormatter.cs
- PrinterSettings.cs
- NativeMethods.cs
- PrimitiveType.cs
- OneToOneMappingSerializer.cs
- WebControl.cs
- DataGridViewToolTip.cs
- ExpiredSecurityTokenException.cs
- HTTPNotFoundHandler.cs
- WebServiceHostFactory.cs
- TextSpan.cs
- TextBoxAutoCompleteSourceConverter.cs
- DataGridViewColumnStateChangedEventArgs.cs
- BaseServiceProvider.cs
- CompositeFontParser.cs
- ListViewUpdateEventArgs.cs
- TrackingLocationCollection.cs
- WebZone.cs
- MessageQueuePermissionEntry.cs
- XamlGridLengthSerializer.cs
- ParamArrayAttribute.cs
- BinaryOperationBinder.cs
- RegexCompilationInfo.cs
- WindowsGraphicsCacheManager.cs
- parserscommon.cs
- ExpandableObjectConverter.cs
- DashStyle.cs
- CompModSwitches.cs
- SubclassTypeValidator.cs
- XmlEventCache.cs
- TextRunCacheImp.cs
- DesignerResources.cs
- SiteMapHierarchicalDataSourceView.cs
- Fx.cs
- StaticResourceExtension.cs
- EventPrivateKey.cs
- RepeatBehaviorConverter.cs
- Color.cs
- SecurityChannelListener.cs
- ECDiffieHellman.cs
- ConditionalWeakTable.cs
- TextSegment.cs
- LinqToSqlWrapper.cs
- BulletDecorator.cs
- XhtmlStyleClass.cs
- InstancePersistence.cs
- diagnosticsswitches.cs
- METAHEADER.cs
- InputBindingCollection.cs
- ConditionalAttribute.cs
- ListItem.cs
- NumberFunctions.cs
- ObjectParameter.cs
- PieceDirectory.cs
- IOException.cs
- CallbackException.cs
- GridToolTip.cs
- AdornedElementPlaceholder.cs
- ComboBoxAutomationPeer.cs
- FileDetails.cs
- RadioButtonList.cs
- SqlConnectionPoolProviderInfo.cs
- DesignerSerializerAttribute.cs
- Main.cs
- BitmapEffectDrawingContextWalker.cs
- ToolStripStatusLabel.cs
- SchemaSetCompiler.cs
- ColumnHeader.cs
- AQNBuilder.cs
- FixedDocumentPaginator.cs
- Random.cs
- CompressionTransform.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- DecoderExceptionFallback.cs
- ToolStripGrip.cs
- Journal.cs
- AnnotationStore.cs
- RoleBoolean.cs
- OperandQuery.cs
- EntityTemplateUserControl.cs
- ButtonBaseAutomationPeer.cs
- OleDbMetaDataFactory.cs
- BasePropertyDescriptor.cs