Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media / TextEffect.cs / 1 / TextEffect.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // 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
- DecodeHelper.cs
- ArgumentValidation.cs
- DBCSCodePageEncoding.cs
- FormViewRow.cs
- TextMetrics.cs
- BypassElementCollection.cs
- DispatcherFrame.cs
- BufferCache.cs
- QueryPageSettingsEventArgs.cs
- LinkDescriptor.cs
- WebPartZoneBase.cs
- IntegerCollectionEditor.cs
- MachineKey.cs
- AnimationClockResource.cs
- EntityReference.cs
- CodeExpressionRuleDeclaration.cs
- AxisAngleRotation3D.cs
- ConfigUtil.cs
- ScriptRegistrationManager.cs
- PointAnimationUsingKeyFrames.cs
- DataView.cs
- TreePrinter.cs
- ToolStripSplitStackLayout.cs
- ThemeableAttribute.cs
- PointAnimationUsingPath.cs
- RawStylusSystemGestureInputReport.cs
- DbDataAdapter.cs
- DataGridColumnCollection.cs
- BindingValueChangedEventArgs.cs
- DbProviderSpecificTypePropertyAttribute.cs
- Sequence.cs
- InlineCollection.cs
- CodeCatchClauseCollection.cs
- ExtensionWindowHeader.cs
- ToolbarAUtomationPeer.cs
- InterleavedZipPartStream.cs
- SqlMultiplexer.cs
- SqlError.cs
- Model3DCollection.cs
- RtfControls.cs
- PathSegment.cs
- EntitySet.cs
- DSACryptoServiceProvider.cs
- PatternMatcher.cs
- HtmlContainerControl.cs
- CryptoStream.cs
- LicFileLicenseProvider.cs
- KernelTypeValidation.cs
- OneOfElement.cs
- UpDownBase.cs
- ClientUtils.cs
- COM2ColorConverter.cs
- PngBitmapEncoder.cs
- WebPartCollection.cs
- SimpleWorkerRequest.cs
- Pair.cs
- TransformDescriptor.cs
- HealthMonitoringSection.cs
- MenuRendererStandards.cs
- HttpCookieCollection.cs
- ImageButton.cs
- InstanceHandleConflictException.cs
- XPathConvert.cs
- DesignTimeParseData.cs
- COM2TypeInfoProcessor.cs
- Triplet.cs
- ProbeMatchesMessageCD1.cs
- WindowsFormsHostAutomationPeer.cs
- AspNetSynchronizationContext.cs
- CombinedGeometry.cs
- SecurityPermission.cs
- PriorityChain.cs
- SystemWebSectionGroup.cs
- CatchDesigner.xaml.cs
- FontUnit.cs
- ExceptionUtil.cs
- IssuedTokenClientCredential.cs
- XamlReader.cs
- OpenTypeLayoutCache.cs
- UriExt.cs
- BitmapScalingModeValidation.cs
- AsymmetricSecurityProtocol.cs
- TrustManagerPromptUI.cs
- sqlcontext.cs
- ToolStripItemBehavior.cs
- InheritanceService.cs
- HandlerBase.cs
- TrackingProfileDeserializationException.cs
- TransformValueSerializer.cs
- SmiEventSink_DeferedProcessing.cs
- HotSpotCollection.cs
- CreatingCookieEventArgs.cs
- CipherData.cs
- IDQuery.cs
- XmlDigitalSignatureProcessor.cs
- PropertyBuilder.cs
- DeferredElementTreeState.cs
- RecordBuilder.cs
- DataGridParentRows.cs
- DesignTimeTemplateParser.cs