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
- NullableFloatMinMaxAggregationOperator.cs
- EdmEntityTypeAttribute.cs
- HtmlLink.cs
- CollectionViewSource.cs
- SimpleBitVector32.cs
- RegexRunner.cs
- XmlChoiceIdentifierAttribute.cs
- MonitorWrapper.cs
- MdiWindowListItemConverter.cs
- TextRangeSerialization.cs
- ContentHostHelper.cs
- SynchronizingStream.cs
- TreeNodeConverter.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- InstancePersistenceContext.cs
- BoundColumn.cs
- ActivityDesignerResources.cs
- CorePropertiesFilter.cs
- ViewValidator.cs
- TableCellCollection.cs
- documentsequencetextcontainer.cs
- EnumBuilder.cs
- TreeNodeMouseHoverEvent.cs
- DocumentXPathNavigator.cs
- TableAutomationPeer.cs
- ColorMap.cs
- GeneralTransformCollection.cs
- TextElement.cs
- CodeThrowExceptionStatement.cs
- ListSurrogate.cs
- TableLayoutCellPaintEventArgs.cs
- Attachment.cs
- IncrementalReadDecoders.cs
- HandoffBehavior.cs
- XamlPointCollectionSerializer.cs
- ViewPort3D.cs
- XComponentModel.cs
- InvalidProgramException.cs
- StringUtil.cs
- ForEachAction.cs
- HttpCachePolicyWrapper.cs
- ProxyWebPartManager.cs
- FieldToken.cs
- DefaultBinder.cs
- DataRelation.cs
- HelpInfo.cs
- IdentityHolder.cs
- InputLanguageEventArgs.cs
- IndentedWriter.cs
- BitmapEffectInputData.cs
- SqlDeflator.cs
- ApplicationProxyInternal.cs
- SqlConnectionHelper.cs
- ColumnHeaderConverter.cs
- CustomPopupPlacement.cs
- SpecialNameAttribute.cs
- DrawingBrush.cs
- XmlNavigatorStack.cs
- SinglePhaseEnlistment.cs
- sqlpipe.cs
- SmiContextFactory.cs
- HMACSHA512.cs
- CompressEmulationStream.cs
- CallbackValidatorAttribute.cs
- PropertyBuilder.cs
- TextRange.cs
- CustomWebEventKey.cs
- WindowsGraphicsWrapper.cs
- DataListCommandEventArgs.cs
- TraceUtility.cs
- StorageModelBuildProvider.cs
- XmlReflectionMember.cs
- SafeCoTaskMem.cs
- ConnectionPoolManager.cs
- PrimarySelectionGlyph.cs
- DependencyPropertyConverter.cs
- DivideByZeroException.cs
- ValidatingCollection.cs
- controlskin.cs
- SmtpNegotiateAuthenticationModule.cs
- MruCache.cs
- AssociationEndMember.cs
- ArraySubsetEnumerator.cs
- CodeIndexerExpression.cs
- SafeEventLogWriteHandle.cs
- WsdlInspector.cs
- ExpressionBuilderContext.cs
- RtfControls.cs
- RightsManagementEncryptedStream.cs
- ClientTarget.cs
- CharEnumerator.cs
- FreezableOperations.cs
- DriveNotFoundException.cs
- EncodingInfo.cs
- ToolboxItemAttribute.cs
- RestClientProxyHandler.cs
- DataServiceSaveChangesEventArgs.cs
- DefaultPropertyAttribute.cs
- initElementDictionary.cs
- ScriptControl.cs