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
- Add.cs
- MyContact.cs
- SelectedDatesCollection.cs
- IndicFontClient.cs
- CommandID.cs
- PageCatalogPartDesigner.cs
- RuleSettingsCollection.cs
- DataGridViewDataErrorEventArgs.cs
- ExecutionContext.cs
- _ConnectOverlappedAsyncResult.cs
- ListViewSortEventArgs.cs
- CollectionChangeEventArgs.cs
- RadioButtonStandardAdapter.cs
- TreeIterators.cs
- UserControlBuildProvider.cs
- CodeGotoStatement.cs
- ManagementNamedValueCollection.cs
- EastAsianLunisolarCalendar.cs
- Utils.cs
- SchemaExporter.cs
- ConfigUtil.cs
- CompoundFileIOPermission.cs
- AutoScrollHelper.cs
- ManagedIStream.cs
- RegexGroupCollection.cs
- _AutoWebProxyScriptHelper.cs
- DesignerUtility.cs
- Util.cs
- CallContext.cs
- TagMapCollection.cs
- InternalCache.cs
- ErrorTableItemStyle.cs
- COAUTHIDENTITY.cs
- ClientScriptManagerWrapper.cs
- PkcsUtils.cs
- FirewallWrapper.cs
- AsyncDataRequest.cs
- CryptoApi.cs
- DrawingCollection.cs
- WindowsNonControl.cs
- WebPartVerbCollection.cs
- Stackframe.cs
- WindowsIdentity.cs
- LocalizationComments.cs
- PerformanceCounterPermissionAttribute.cs
- AttributedMetaModel.cs
- DeflateInput.cs
- DeleteHelper.cs
- MonthCalendar.cs
- WebScriptMetadataMessage.cs
- TimeSpanMinutesConverter.cs
- TransformPatternIdentifiers.cs
- PropertyPath.cs
- ProcessHost.cs
- InternalResources.cs
- HTTPNotFoundHandler.cs
- HwndStylusInputProvider.cs
- DocumentPageView.cs
- HScrollProperties.cs
- Ref.cs
- TableLayoutColumnStyleCollection.cs
- TargetInvocationException.cs
- JournalNavigationScope.cs
- Int64AnimationUsingKeyFrames.cs
- CodeMemberMethod.cs
- ThemeDirectoryCompiler.cs
- TextModifierScope.cs
- XmlMtomReader.cs
- DesignerAttributeInfo.cs
- RelationshipConverter.cs
- PrintPreviewGraphics.cs
- CommentEmitter.cs
- TransportSecurityProtocolFactory.cs
- VisualProxy.cs
- PlainXmlWriter.cs
- HttpPostLocalhostServerProtocol.cs
- CodeTypeReference.cs
- FixedSOMPage.cs
- FileInfo.cs
- BulletDecorator.cs
- TextBox.cs
- NextPreviousPagerField.cs
- OrderedEnumerableRowCollection.cs
- Input.cs
- ListControl.cs
- ExtentJoinTreeNode.cs
- CodeDelegateCreateExpression.cs
- Utilities.cs
- DesignerGenericWebPart.cs
- Int16Storage.cs
- ListViewUpdateEventArgs.cs
- GroupByExpressionRewriter.cs
- OutputBuffer.cs
- AlignmentYValidation.cs
- BaseTemplateParser.cs
- SelectionRangeConverter.cs
- TemplateNameScope.cs
- UnsafeNativeMethods.cs
- RegisteredHiddenField.cs
- CompositeFontParser.cs