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
- RepeaterItemEventArgs.cs
- PrePrepareMethodAttribute.cs
- ProcessHostMapPath.cs
- DrawingState.cs
- LicFileLicenseProvider.cs
- oledbconnectionstring.cs
- ObjectViewFactory.cs
- SpecialNameAttribute.cs
- CompilerInfo.cs
- ConfigXmlText.cs
- GuidelineSet.cs
- FixedTextBuilder.cs
- XmlQueryContext.cs
- XmlAnyElementAttribute.cs
- MediaElement.cs
- XmlEncoding.cs
- DataGridColumnEventArgs.cs
- IDReferencePropertyAttribute.cs
- DBCommand.cs
- LookupBindingPropertiesAttribute.cs
- ExpressionsCollectionConverter.cs
- ToolTip.cs
- PrintPreviewDialog.cs
- HttpServerVarsCollection.cs
- AttributeCollection.cs
- AliasedSlot.cs
- SmtpNtlmAuthenticationModule.cs
- FormatConvertedBitmap.cs
- MatrixCamera.cs
- OleDbDataReader.cs
- ThicknessAnimation.cs
- SafeLibraryHandle.cs
- UnsafeNativeMethods.cs
- RawTextInputReport.cs
- Light.cs
- HttpValueCollection.cs
- RequestResizeEvent.cs
- GeneralTransform3DGroup.cs
- SiteMapDataSourceView.cs
- PermissionSetEnumerator.cs
- MobileControlsSectionHelper.cs
- RowCache.cs
- TreeViewCancelEvent.cs
- TypeConverterHelper.cs
- WebPartConnectionsConfigureVerb.cs
- SchemaTableOptionalColumn.cs
- OleDbInfoMessageEvent.cs
- MouseBinding.cs
- DataDocumentXPathNavigator.cs
- ClientOptions.cs
- SystemTcpStatistics.cs
- COAUTHIDENTITY.cs
- RecordManager.cs
- HttpBindingExtension.cs
- TriggerCollection.cs
- XPathDocumentBuilder.cs
- RadioButtonBaseAdapter.cs
- COM2IDispatchConverter.cs
- RecognizedWordUnit.cs
- HandlerBase.cs
- SecUtil.cs
- ToolStripPanel.cs
- PropagatorResult.cs
- DynamicResourceExtensionConverter.cs
- GridToolTip.cs
- DeviceContext2.cs
- WinOEToolBoxItem.cs
- TemplateAction.cs
- Update.cs
- Registry.cs
- NavigationPropertyEmitter.cs
- OdbcDataAdapter.cs
- DesignSurfaceManager.cs
- WizardPanel.cs
- _StreamFramer.cs
- ServiceNameElement.cs
- DataRowChangeEvent.cs
- CommandField.cs
- BatchParser.cs
- BigInt.cs
- Figure.cs
- DbDataSourceEnumerator.cs
- CancelEventArgs.cs
- FileClassifier.cs
- LayoutManager.cs
- SqlGenericUtil.cs
- DesignerProperties.cs
- DelegateBodyWriter.cs
- FrameworkObject.cs
- DesignerView.cs
- WrappedIUnknown.cs
- BeginGetFileNameFromUserRequest.cs
- NameTable.cs
- XmlDictionary.cs
- ImageDrawing.cs
- OverflowException.cs
- HMACSHA384.cs
- TabControlEvent.cs
- TypedColumnHandler.cs
- TdsParserSessionPool.cs