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
- VectorKeyFrameCollection.cs
- XmlIterators.cs
- SiteMapPath.cs
- FilteredReadOnlyMetadataCollection.cs
- ImageMapEventArgs.cs
- Instrumentation.cs
- ParagraphResult.cs
- FixedSOMSemanticBox.cs
- BehaviorEditorPart.cs
- SafeNativeMethods.cs
- RadioButton.cs
- DataGridViewCellPaintingEventArgs.cs
- SerializationObjectManager.cs
- ProcessModelInfo.cs
- SqlParameterCollection.cs
- CrossSiteScriptingValidation.cs
- FontFamilyIdentifier.cs
- Converter.cs
- PersonalizationStateQuery.cs
- ObjectDataSource.cs
- SourceFileBuildProvider.cs
- RotateTransform3D.cs
- InheritanceContextChangedEventManager.cs
- RelationshipEndCollection.cs
- TypeCollectionDesigner.xaml.cs
- TextProperties.cs
- AppDomainCompilerProxy.cs
- TextRangeEditLists.cs
- TextAnchor.cs
- WaitHandleCannotBeOpenedException.cs
- MachineSettingsSection.cs
- cookie.cs
- ContextDataSource.cs
- CryptoApi.cs
- KeyFrames.cs
- securitycriticaldataformultiplegetandset.cs
- SQLInt16.cs
- RtfToken.cs
- XamlStream.cs
- _ListenerResponseStream.cs
- X509Utils.cs
- WebPart.cs
- safex509handles.cs
- WindowsTooltip.cs
- PerformanceCounter.cs
- SqlDataSourceView.cs
- TagPrefixCollection.cs
- DateTimeValueSerializerContext.cs
- HtmlHistory.cs
- DecoderNLS.cs
- ProviderConnectionPoint.cs
- BindToObject.cs
- DataGridPagerStyle.cs
- StringUtil.cs
- FormsAuthenticationConfiguration.cs
- HttpPostClientProtocol.cs
- Image.cs
- LocationReferenceEnvironment.cs
- ViewGenerator.cs
- DefaultEvaluationContext.cs
- ExpressionBuilder.cs
- ProvidersHelper.cs
- DES.cs
- FunctionUpdateCommand.cs
- WpfMemberInvoker.cs
- Merger.cs
- AssemblyCollection.cs
- DetailsView.cs
- ColorContext.cs
- ValueType.cs
- DoubleStorage.cs
- CommandField.cs
- StrokeNodeOperations2.cs
- Activation.cs
- SmiSettersStream.cs
- ArgumentException.cs
- ExpressionBuilderContext.cs
- WindowsGraphics2.cs
- HtmlTableCellCollection.cs
- hebrewshape.cs
- Matrix3D.cs
- XmlEntity.cs
- InternalConfigHost.cs
- SByte.cs
- InputScopeManager.cs
- BitStack.cs
- OleStrCAMarshaler.cs
- XmlUtf8RawTextWriter.cs
- ToolBar.cs
- SoapIncludeAttribute.cs
- XmlSerializableReader.cs
- CipherData.cs
- XmlSchemaElement.cs
- StringArrayConverter.cs
- FontEmbeddingManager.cs
- PeerPresenceInfo.cs
- ApplicationInfo.cs
- ArrangedElement.cs
- XmlDataProvider.cs
- RestHandler.cs