Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / 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: MichKa - 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. // // Description: This file contains the static class DashStyles. // DashStyles contains well known DashStyles implementations. // // History: // 11/15/2004: MichKa - 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsGraphicsWrapper.cs
- HttpHandlersSection.cs
- XmlSchemaInfo.cs
- LinearGradientBrush.cs
- TextSelectionProcessor.cs
- DbParameterCollection.cs
- SerializationInfoEnumerator.cs
- SecurityAlgorithmSuite.cs
- SecurityContext.cs
- ValidationRuleCollection.cs
- CacheOutputQuery.cs
- controlskin.cs
- ListBindableAttribute.cs
- GridSplitterAutomationPeer.cs
- Array.cs
- TempFiles.cs
- ToolStripContentPanelRenderEventArgs.cs
- CustomExpressionEventArgs.cs
- _NestedSingleAsyncResult.cs
- AbstractDataSvcMapFileLoader.cs
- ProxySimple.cs
- SecurityHeader.cs
- XNameTypeConverter.cs
- KnownBoxes.cs
- TypeSystemProvider.cs
- TransactionScopeDesigner.cs
- Timer.cs
- RemotingException.cs
- AbsoluteQuery.cs
- HandlerMappingMemo.cs
- DCSafeHandle.cs
- ServiceDocument.cs
- Cursors.cs
- XPathMultyIterator.cs
- PathFigureCollectionConverter.cs
- IntSecurity.cs
- Frame.cs
- AutoGeneratedField.cs
- BoundPropertyEntry.cs
- LockCookie.cs
- TextBox.cs
- ExpressionNode.cs
- CompositeActivityTypeDescriptor.cs
- QueryCacheKey.cs
- GeneralTransform3DGroup.cs
- DbParameterHelper.cs
- ColumnClickEvent.cs
- RemoteWebConfigurationHost.cs
- Timer.cs
- DictionaryKeyPropertyAttribute.cs
- PersistChildrenAttribute.cs
- SHA384.cs
- StoreItemCollection.Loader.cs
- IResourceProvider.cs
- UnionExpr.cs
- RelOps.cs
- ToolStripItemBehavior.cs
- DataServiceRequestOfT.cs
- Timer.cs
- HtmlWindowCollection.cs
- FixedDocumentPaginator.cs
- SelectionHighlightInfo.cs
- SqlException.cs
- DataGridViewCheckBoxColumn.cs
- FrameworkRichTextComposition.cs
- ConfigurationStrings.cs
- NativeMethods.cs
- Operator.cs
- FixedSOMLineCollection.cs
- EncoderParameters.cs
- QueryPageSettingsEventArgs.cs
- GlyphRun.cs
- Size.cs
- DesignTimeType.cs
- BrowserTree.cs
- SerializerDescriptor.cs
- EventLogPermission.cs
- DependencyPropertyKey.cs
- ImageKeyConverter.cs
- AVElementHelper.cs
- NativeMethods.cs
- HtmlPanelAdapter.cs
- FolderBrowserDialog.cs
- SelectionUIHandler.cs
- CommandField.cs
- MailMessageEventArgs.cs
- TextTreeUndo.cs
- BmpBitmapEncoder.cs
- HelpProvider.cs
- ElementInit.cs
- CustomPeerResolverService.cs
- CodePageUtils.cs
- ArrayWithOffset.cs
- Triangle.cs
- CodeSnippetCompileUnit.cs
- EntityDataSourceSelectedEventArgs.cs
- WindowCollection.cs
- PartitionedStreamMerger.cs
- NonBatchDirectoryCompiler.cs
- AnimationTimeline.cs