Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / DashStyles.cs / 1 / DashStyles.cs
//---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // Description: This file contains the static class DashStyles. // DashStyles contains well known DashStyles implementations. // // History: // 11/15/2004: [....] - Created it. // //--------------------------------------------------------------------------- using System; using System.Windows; namespace System.Windows.Media { ////// DashStyles - The DashStyles class is static, and contains properties for well known /// dash styles. /// public static class DashStyles { #region Public Static Properties ////// Solid - A solid DashArray (no dashes). /// public static DashStyle Solid { get { if (_solid == null) { DashStyle solid = new DashStyle(); solid.Freeze(); _solid = solid; } return _solid; } } ////// Dash - A DashArray which is 2 on, 2 off /// public static DashStyle Dash { get { if (_dash == null) { DashStyle style = new DashStyle(new double[] {2, 2}, 1); style.Freeze(); _dash = style; } return _dash; } } ////// Dot - A DashArray which is 0 on, 2 off /// public static DashStyle Dot { get { if (_dot == null) { DashStyle style = new DashStyle(new double[] {0, 2}, 0); style.Freeze(); _dot = style; } return _dot; } } ////// DashDot - A DashArray which is 2 on, 2 off, 0 on, 2 off /// public static DashStyle DashDot { get { if (_dashDot == null) { DashStyle style = new DashStyle(new double[] {2, 2, 0, 2}, 1); style.Freeze(); _dashDot = style; } return _dashDot; } } ////// DashDot - A DashArray which is 2 on, 2 off, 0 on, 2 off, 0 on, 2 off /// public static DashStyle DashDotDot { get { if (_dashDotDot == null) { DashStyle style = new DashStyle(new double[] {2, 2, 0, 2, 0, 2}, 1); style.Freeze(); _dashDotDot = style; } return _dashDotDot; } } #endregion Public Static Properties #region Private Static Fields private static DashStyle _solid; private static DashStyle _dash; private static DashStyle _dot; private static DashStyle _dashDot; private static DashStyle _dashDotDot; #endregion Private Static Fields } } // 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
- ProcessThreadCollection.cs
- ClrPerspective.cs
- PersonalizableAttribute.cs
- AppSettingsSection.cs
- ProviderUtil.cs
- ExpressionLexer.cs
- XamlSerializerUtil.cs
- FixedStringLookup.cs
- CompiledIdentityConstraint.cs
- QilTernary.cs
- FixedSOMTextRun.cs
- DataSvcMapFile.cs
- PrimaryKeyTypeConverter.cs
- ZipIOCentralDirectoryFileHeader.cs
- HttpCachePolicy.cs
- SiteMapNodeCollection.cs
- WebChannelFactory.cs
- ExecutionContext.cs
- Util.cs
- MaterialGroup.cs
- RoutedEventConverter.cs
- StylusPlugInCollection.cs
- AddInAdapter.cs
- TextContainerChangeEventArgs.cs
- SystemKeyConverter.cs
- GroupBox.cs
- TdsParser.cs
- SchemaObjectWriter.cs
- DiscreteKeyFrames.cs
- EndpointAddressMessageFilter.cs
- StrongName.cs
- NegotiateStream.cs
- CodeEventReferenceExpression.cs
- TypeLoadException.cs
- SeverityFilter.cs
- TableItemProviderWrapper.cs
- String.cs
- EntitySqlQueryState.cs
- DocumentPaginator.cs
- InteropExecutor.cs
- StyleXamlParser.cs
- SamlSubjectStatement.cs
- EncoderParameters.cs
- DataGridViewRowPostPaintEventArgs.cs
- RootCodeDomSerializer.cs
- PasswordTextNavigator.cs
- ControlValuePropertyAttribute.cs
- RegexTree.cs
- TimelineClockCollection.cs
- DoubleCollectionConverter.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- ManifestBasedResourceGroveler.cs
- RangeValidator.cs
- Point3DIndependentAnimationStorage.cs
- CodeGeneratorOptions.cs
- TCEAdapterGenerator.cs
- ReferentialConstraint.cs
- StreamGeometryContext.cs
- TimerExtension.cs
- SqlDataSourceSelectingEventArgs.cs
- FileCodeGroup.cs
- DiscoveryServerProtocol.cs
- ServiceSecurityAuditBehavior.cs
- CreateUserWizardDesigner.cs
- DesignerSerializerAttribute.cs
- HtmlElementErrorEventArgs.cs
- UTF32Encoding.cs
- SQLGuid.cs
- Gdiplus.cs
- Matrix.cs
- TypeLoadException.cs
- NamespaceMapping.cs
- AlphaSortedEnumConverter.cs
- DesignerHierarchicalDataSourceView.cs
- XomlSerializationHelpers.cs
- FixedSOMPage.cs
- LOSFormatter.cs
- HtmlInputSubmit.cs
- GridItemProviderWrapper.cs
- AsyncCompletedEventArgs.cs
- XmlSerializationReader.cs
- DetailsViewRow.cs
- ObjectDataSourceStatusEventArgs.cs
- Helpers.cs
- RegexCode.cs
- ClientUIRequest.cs
- NavigatingCancelEventArgs.cs
- FastEncoder.cs
- MenuItemBindingCollection.cs
- RoleService.cs
- SplashScreenNativeMethods.cs
- GeometryDrawing.cs
- ListBoxItem.cs
- StringSorter.cs
- Compiler.cs
- DateTimeOffset.cs
- QilTargetType.cs
- UnsafeNativeMethodsTablet.cs
- CachedBitmap.cs
- KeyboardEventArgs.cs